Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeeduino Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
    • Going Python?
  • IoT
    • IoT Platforms: Which Hardware?
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

​IoT with Losant​

Compared with other solutions, Losant relies on MQTT with a JSON-formatted payload, and offers a workflow to manage and process the data collected.

I applied for the free and limited account. 

Picture
 

Implementing the Example on Energia

Creating an application from scratch starts with defining a device, then fields for values.

Like other MQTT implementations, three codes are supplied and required.

​The 
Device ID is provided on the Application pane, but the  Access Key and Access Secret are defined on the Access Key pane.
Losant relies on two MQTT topics: the first is called State and is sent by the device to Losant; the second is called Command and is sent from Losant to the device. The payload is a standard JSON string.
​
Picture
The data explorer lists, plots and summarises the values of the states received.
But the most interesting part of the Losant solution is the workflow. 

In the example shown on the right, the Light value is compared to a threehold.

The comparison expression is {{data.Light}} < 10000.

Note the summarised help on the right pane and the link to the more comprehensive documentation.


Picture
If the condition is met, actions are taken accordingly, here sending an e-mail and a SMS.

Now, the environmnet is very close to Node-RED, although it includes a long list of nodes already installed and ready to use, like MongoDB or SalesForce cases.

Picture
I had no major issues porting the Arduino example to the CC3200 LaunchPad with the Sensors BoosterPack and Fuel Tank MK-II BoosterPack on Energia.

The initial example includes the 
Losant Arduino MQTT Client, which acts as an umbrella library and calls the MQTT and JSON standard libraries.

​It was easier to get rid of the dedicated library, and use 
the MQTT and JSON standard libraries for Energia directly instead.
Picture

Documentation

All the pages include a short help, with a link to the corresponding extended documentation​.

​There is a dedicated section for selected boards, for example for Getting Started with Arduino. The documentation also includes a repository of Tutorials and Projects.


Picture

Conclusion

I like the workflow capabilities and the flexibility it brings.

Now, it may be redundant with a Node-RED environment installed on a local server, although it comes with a long list of nodes already installed and reasy-to-use.

Losant is on the cloud and requires an active internet connection, but provides all the tools in one single place.
Picture

Pros

  • MQTT and JSON standards
  • Libraries for most popular boards

Cons

  • May be redundant with Node-RED running on a local server
  • Cloud only 

Wrap-Up

  • Great flexibility with workflows​
  • Cloud only 

Links

  • Losant
  • Documentation​
Picture
Powered by Create your own unique website with customizable templates.