Location in IOT cloud

Hi all,

I currently have an adafruit feather huzzah, and using the arduino iot cloud. I have the led working, a button controls the led, and the state also changes online, all working.

I would however like to try the location function too. I currently don't have a GPS module, but for a test I would like to use a fixed longitude/lattitude. I can't find any information how to send this data to the IOT. Can anybody help me out?


Let's say your Location property's variable name is locationCoordinates and you wanted to set your location to latitude 45.0501, longitude 7.66666. You would add the following to the loop function of your sketch:

locationCoordinates=Location(45.0501, 7.66666);

If you have any problems with that, let me know and I'll help out.

If you want more information on using the Location property, you can look at the ArduinoCloudThing library's CloudLocation.h:

Thanks Pert!, everything is working now! :slight_smile:

You're welcome. I'm glad if I was able to be of assistance. Enjoy!