Author Topic: AWS IoT and Losant  (Read 834 times)

millennial

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: AWS IoT and Losant
« on: June 18, 2016, 02:01:28 pm »
With mc-gateway Application Processor v0.6-357 I have been successfully sending temperature readings to Losant for about 9 minutes now. Thank you for getting a bare-bones implementation out so quickly from 356 to 357!

I am sure that your collaboration will lead to more tight integration with Losant, such as being able to have each mc-module map to their Device IDs.

Another roadblock that I encountered when integrating with Losant was making a payload of a string JSON object. From the mc-studio documentation, it appears that to escape double quotes in a string, you just use another double quote. However it seems this is not yet implemented because the studio auto formats this code and has a compile error.

Before formatting, and as I would expect it to work:
Code: [Select]
payload = "{""name"":""set-temperature"",""payload"":{""temperature"":72}"
After formatting:
Code: [Select]
payload = "{" "name" ":" "set-temperature" "," "payload" ":{" "temperature" ":72}"
The compile error is "Multiple operands without an operator."