Files
OpenMQTT-Gateway/main
adamrbell 5890bf7be6 Fix for CGD1 detection (#810)
Before the fix:
{"id":"58:2D:34:50:A0:D0","name":"Qingping Alarm Clock","rssi":-82,"distance":11.4949,"servicedata":"080cd0a050342d580104c0007c02"}
The servicedata string does not match any pattern so is not parsed

After the fix:
{"id":"58:2D:34:50:A0:D0","name":"Qingping Alarm Clock","rssi":-83,"distance":12.61001,"model":"CGD1","tem":19.2,"tempc":19.2,"tempf":66.56,"hum":63.5}
The parser is invoked and the data is output as expected.

There are probably too many brackets (I'm not a C dev) and I can't test on whatever version of CGD1 broadcasts 080caf or 080c09 servicedata strings.
2020-11-24 10:19:28 -06:00
..
2020-06-13 20:04:36 -05:00
2020-06-13 20:04:36 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-06-13 20:04:36 -05:00
2020-06-13 20:04:36 -05:00
2020-06-13 20:04:36 -05:00
2020-06-13 20:04:36 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-06-13 20:04:36 -05:00
2020-07-19 06:29:49 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-10-19 13:48:58 -05:00
2020-08-27 16:24:23 -05:00
2020-06-13 20:04:36 -05:00
2020-11-24 10:19:28 -06:00
2020-06-09 16:09:23 -05:00
2020-10-15 07:40:24 -05:00
2020-06-13 20:04:36 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-06-13 20:04:36 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00
2020-06-09 16:09:23 -05:00