osd-contiki/examples/cc26xx
alexstanoev a30364189a Zero out httpd_state before deallocating
When a connection is aborted by the HTTP server while it's still being processed it is possible to hit a null pointer dereference issue by jumping back to a protothread (outputpt) after its httpd_state has been freed. This can be triggered by sending a POST to any form in the CC26xx web demo server using Firefox.
This patch prevents that by zeroing out httpd_state structs before freeing them, thus also clearing the httpd_state->outputpt field.
Tested using Firefox 55.0a1 on a CC2650 LaunchPad.
2017-03-31 16:44:11 +01:00
..
cc26xx-web-demo Zero out httpd_state before deallocating 2017-03-31 16:44:11 +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.