osd-contiki/examples/cc26xx
Alexandru-Ioan Pop f15b86158b Check broker IP conversion. Adjust state machine accordingly
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)
2017-03-31 17:33:29 +01:00
..
cc26xx-web-demo Check broker IP conversion. Adjust state machine accordingly 2017-03-31 17:33:29 +01:00
very-sleepy-demo Enable the ROM bootloader in our examples 2016-07-17 00:26:52 +01:00
cc26xx-demo.c Demonstrate ALS support in the CC26xx demo 2016-05-29 15:05:13 +01:00
Makefile Add CC26xx examples 2015-02-25 13:15:35 +01:00
Makefile.target Add CC26xx examples 2015-02-25 13:15:35 +01:00
project-conf.h Enable the ROM bootloader in our examples 2016-07-17 00:26:52 +01:00
README.md Modify cc26xx examples to play nicely with the CC13xx addition 2015-08-23 20:41:11 +01:00

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.