Brian Daniels / Mbed 2 deprecated nespresso_demo

Dependencies:   EthernetInterface mbed-rtos mbed nsdl rgb_sensor_buffer

Fork of mbed_nsdl by Nespresso RGB Sensor

Files at this revision

API Documentation at this revision

Comitter:
bjblazkowicz
Date:
Fri Dec 05 14:28:31 2014 +0000
Parent:
9:9d5b0c43579b
Child:
11:2a853cd96bf7
Commit message:
Use " instead of ' on the beacon json payload.

Changed in this revision

resources/beacon_resource.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/resources/beacon_resource.cpp	Wed Oct 29 18:28:59 2014 +0000
+++ b/resources/beacon_resource.cpp	Fri Dec 05 14:28:31 2014 +0000
@@ -36,7 +36,7 @@
 
 // Encode the beacon record as JSON.
 void encode_beacon_record(const beacon_record_t *record, char *json, int *json_length) {
-    static const char *format = "{'r':%d, 'c':%d,'m':%d,'n':%d,'ch':%d}";
+    static const char *format = "{\"r\":%d, \"c\":%d,\"m\":%d,\"n\":%d,\"ch\":%d}";
     *json_length = sprintf(json, format, record->rssi, record->calibration, record->major, record->minor, record->channel);
 }