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: mbed
Fork of MBED_SERVER_SETUP by
Diff: main.cpp
- Revision:
- 3:8534d8489cbc
- Parent:
- 2:49b2668be97c
- Child:
- 4:03a5f1c0e49a
--- a/main.cpp Fri Jun 17 09:38:27 2016 +0000
+++ b/main.cpp Fri Jun 17 10:29:34 2016 +0000
@@ -129,7 +129,6 @@
dev.attach(&dev_recv, Serial::RxIrq);
pc.printf("Start up\n\r");
char * resp=NULL;
- int pedometer_channel;
char *dummy;
pc.printf("Here \n\r");
@@ -220,14 +219,13 @@
break;
case 9: { //gets pedometer channel
resp=OKResponse(buffer,"PEDOMETER");
- dev.printf("PEDOMETER,1,2,3");
if (resp!=NULL) {
INFO("Finding pedometer channel2");
char *strt = strtok(buffer,",");
strcpy(pedometer_channel,strtok(NULL,","));
strtok(NULL,",");
strcpy(macAddress,strtok(NULL,","));
- INFO("mac Address = %s", macAddress);
+ INFO("filler = %s", macAddress);
INFO("pedometer_channel = %s", pedometer_channel);
// pedometer_channel = strtol(ipAddress, NULL, 10);
@@ -240,7 +238,7 @@
if (resp!=NULL) {
INFO("Testing connection");
state++;
- dev.printf("AT+CIPSEND=%u,6\r\n",pedometer_channel);
+ dev.printf("AT+CIPSEND = %s\r\n",pedometer_channel);
}
break;
