MultiTech Socket Modem and MTSAS ST MEMS Demo X-NUCLEO-IKS01A1 Aeris Aercloud
Dependencies: MQTT Nucleo_Sensor_Shield mbed
Revision 1:ce1ed2844521, committed 2015-01-28
- Comitter:
- BlueShadow
- Date:
- Wed Jan 28 20:57:32 2015 +0000
- Parent:
- 0:37336794ce7e
- Commit message:
- ST Conference Demo
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jan 28 19:35:10 2015 +0000 +++ b/main.cpp Wed Jan 28 20:57:32 2015 +0000 @@ -1,5 +1,5 @@ /* This is an example program which reads in the 3-axis acceleration, pressure, and temperature data from - * a FRDM-FXS-MULTI sensor board. It then uses an MTSAS SocketModem Shield board to send the read data over + * a sensor board. It then uses an MTSAS SocketModem Shield board to send the read data over * a cellular connection to Aeris AerCloud using an MQTT client protocol. */ @@ -44,8 +44,8 @@ char _AERCLOUD_API_KEY[] ="5c6fdcba-7be8-11e2-bef9-3383855fced8"; char _AERCLOUD_ACCOUNT_ID[] = "10677"; // account ID is correct. -char _AERCLOUD_CONTAINER[] = "Nucleo_STmems"; // new container name -char _AERCLOUD_DEVICE_ID[] = "Nucleo-STmems"; // last 4 digits of IMEI +char _AERCLOUD_CONTAINER[] = "NUCLEO_STmems"; // new container name +char _AERCLOUD_DEVICE_ID[] = "NUCLEO-STmems"; // last 4 digits of IMEI char _AERCLOUD_SUBSCRIPTION_ID[] = "NUCLEO_STmems_Sid"; // created at Continer Name then Subscription ID for LongPoll @@ -108,7 +108,7 @@ printf("Signal Strength: %d\n\r", radio->getSignalStrength()); //Check the signal strength should be above 8 printf("data is stored at:\n\r\r"); - printf("http://longpoll.aercloud.aeris.com/v1/%s/containers/subscriptions/%s/notificationChannels/longPoll?apiKey=%s",_AERCLOUD_ACCOUNT_ID,/*_AERCLOUD_CONTAINER,*/_AERCLOUD_SUBSCRIPTION_ID,_AERCLOUD_API_KEY); + printf("http://longpoll.aercloud.aeris.com/v1/%s/containers/subscriptions/%s/notificationChannels/longPoll?apiKey=%s",_AERCLOUD_ACCOUNT_ID,_AERCLOUD_SUBSCRIPTION_ID,_AERCLOUD_API_KEY); printf(" \n\r \n\r"); // If you suspect a connectivity issue, uncomment the code below and if ping works. If you are not getting a