Implements some methods of the protocol for "Zhongxun Locator Communication Protocol".
Working with "GF-22" device from AliExpress.
Install dependencies:
npm installStart the TCP server:
npm startIt will run the server on port 2222.
I use ngrok to expose the server to the internet.
$ ngrok tcp 2222
...
Forwarding tcp://XXX.tcp.eu.ngrok.io:12345 -> localhost:2222Point your device to the address above by sending an SMS to your device:
// server#domain#port example:
server#XXX.tcp.eu.ngrok.io#12345
You should receive an "OK" SMS response.
Run test suite:
npm test