f15b86158b
The result of converting the IP address of the broker wasn't checked. As a result, the pointer was left uninitialised and the IPv6 address used for connecting was some random data. The function now returns an error. Before connect_to_broker is called, mqtt_register is executed, which memsets conn to 0, making its state 0 (MQTT_CONN_STATE_ERROR). In order to recover from this error state, the extra check was added in the MQTT_CLIENT_STATE_NEWCONFIG state. This was discovered using [CodeSonar](https://www.grammatech.com/products/codesonar) |
||
---|---|---|
.. | ||
cc26xx-web-demo | ||
very-sleepy-demo | ||
cc26xx-demo.c | ||
Makefile | ||
Makefile.target | ||
project-conf.h | ||
README.md |
CC26xx Demo
This example demonstrates basic functionality for the two supported CC26xx boards. More specifically, the example demonstrates:
- How to take sensor readings
- How to use buttons and the reed relay (triggered by holding a magnet near S3 on the SensorTag).
- How to send out BLE advertisements, if the chip has BLE capability. The device will periodically send out BLE beacons with the platform name as payload. Those beacons/BLE ADV packets can be captured with any BLE-capable device. Two such applications for iOS are the TI Multitool and the TI Sensortag app. They can be found in the Apple App Store. If you have a BLE-capable Mac, you can also use LightBlue for OS X.