Websocket UART Connection

#1

Hi,

I am trying to connect mDash device through websocket and it gives undefined error.

Web socket : wss://mdash.net/api/v2/devices/device_id/uart?token=API_KEY

ERROR: undefined

#2

wss://mdash.net/api/v2/devices/DEVICE_ID/uart?token=API_KEY

Make sure both device DEVICE_ID and API_KEY in the URL are set correctly.

#3

Hi,
Here the link i am trying to test.

wss://mdash.net/api/v2/devices/device1/uart?token=fwTzAm************OKq1NA

Response:
Error : Undefined
disconnected

#4

I think it should be access_token=..., not token=...

#5

Hi,

Please find the attached image

#6

more info.

#7

Please try MQTT first - you could do with any public broker.
Does your device work fine via MQTT bridge?