ccchart icon indicating copy to clipboard operation
ccchart copied to clipboard

How to connect to own websocket and draw 16bit binary data array?

Open williamesp2015 opened this issue 7 years ago • 2 comments

This is great chart for websocket to show realtime data. I don't know hot to customize getting binary array data from my websocket and draw chart (e.g. 10 series line). Thanks

williamesp2015 avatar Jan 18 '18 13:01 williamesp2015

hi Is it the type of WebSocket, for example?

var wss= new WebSocket('wss://example.com:8082');
wss.binaryType = 'arraybuffer'; //or 'blob'

toshirot avatar Jan 18 '18 23:01 toshirot

Hi, yes I am using https://github.com/Links2004/arduinoWebSockets I get binary date array e.g length is 128 bytes.

williamesp2015 avatar Apr 18 '18 19:04 williamesp2015