https://gitlab.com/iceberg1369/configurator
the app sends cfg_getstatus command to device every 5 seconds
[APP --> Device] >
cfg_getstatus
[Device --> App] >
`<START_STATUS>{"device_name":"S900","firmware":"1.7.1","imei":"86986455324855","rtc":1609321569}<END_STATUS>`
then when first "get_status" is received then send cfg_getparams to device and device replies the stored parameters // only once
[APP --> Device] >
cfg_getparams
[Device --> App] >
<START_PARAMS>[{"id":2004,"val":"hiro-tracker.com"},{"id":138,"val":2}]<END_PARAMS>
[APP --> Device] >
cfg_setparams:<START_PARAMS>[{"id":2004,"val":"hiro-tracker.com"},{"id":138,"val":2}]<END_PARAMS>
[Device --> App] >
<SAVECONFIG>OK<SAVECONFIG>
[Device --> App] >
<SAVECONFIG>FAILED:blahblah<SAVECONFIG>