Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed nsdl rgb_sensor_buffer
Fork of mbed_nsdl by
Diff: resources/beacon_resource.cpp
- Revision:
- 10:9c11a8889d62
- Parent:
- 9:9d5b0c43579b
diff -r 9d5b0c43579b -r 9c11a8889d62 resources/beacon_resource.cpp
--- 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);
}
