How to stream the data? Please note that stream connector require urllib3.
Setup Stream Connector
-
Downlaod the stream connector git clone https://github.com/beirbear/HarmonicSC.git
-
Change directory into the stream connector cd HarmonicSC
-
Install stream connector sudo python3.5 setup.py install
How to use StreamConnector?
-
Import module from stream_connector import StreamConnector
-
Instanitiate sc = StreamConnector(MASTER_ADDR, MASTER_PORT, [TOKEN], [IDEL_TIME], [MAX_RETRY])
-
Stream the data data must be in a bytearray type sc.send_data(data)