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
Revision 10:9c11a8889d62, committed 2014-12-05
- 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);
}
