9 years, 5 months ago.

Why I get "Identifier is not defined" errors on line 114?

Why I get "Identifier is not defined" errors on line 114?

printf("http://longpoll.aercloud.aeris.com/v1/%s/containers/subscriptions/%s/notificationChannels/longPoll?apiKey=%s",_AERCLOUD_ACCOUNT_ID,_AERCLOUD_SUBSCRIPTION_ID,_AERCLOUD_API_KEY);

identifiers not defined; _AERCLOUD_ACCOUNT_ID, _AERCLOUD_SUBSCRIPTION_ID, _AERCLOUD_API_KEY);

Question relating to:

Dragonfly talking to a ST X-Nucleo demo board. Aeris Aercloud portion is remarked out. Also a portion of the ST Sensors are documented but remarked out.

2 Answers

9 years, 5 months ago.

Looks like you are trying to use some cloudservice. You will first need to register with a personal account and password on that server. These private values should then be stored in your program in the now missing defines for _AERCLOUD_ACCOUNT_ID etc.

9 years, 4 months ago.

I stole the code from a previous class that I was teaching how to use Aeris cloud services. In this example I remembered to remove a number of the Cloud services calls in comments but unfortunately didn't remember to comment out the 3 lines that are causing you problems. The solution is to comment out those three lines of code. You are very correct regarding getting a personal account and password on a server, then the rest of the commented out code could be used to drop the ST MEMS data to the cloud.

Footnote, the MQTT services library that I incorporated only allow 256 bytes of data. There is a better version that allowed 64K data packets that would allow all the data to be transferred in one shot.