Programming connection store Neuko provides an abstract class of ConnectionStore to make it flexible for developer to choose on how to save, retrieve check for existence and delete perpetual connection configuration file. The file will be sent to the device during Activation request within provisioning process as describe in this guide. For illustration, let’s assume …
Start device connection This section shows how to start the device for connection to the Neuko Cloud IoT platform. Neuko SDK will determine on where is the device to be connected, either to Provisioning endpoint or Perpetual endpoint, based on the lifecycles as described in this guide. Make sure the following store has been programmed:
Device updates to telemetry state This guide describes the concept and syntax when a device to update changes of telemetry state to its Virtual Twin. When a device updates the telemetry state, the whole telemetry state schema will be sent to Neuko Cloud IoT platform and the platform will update the Virtual Twin and store …
Device listens to telemetry state changed This guide describes the concept and syntax when a device listens to the changes of telemetry state from its Virtual Twin. Below telemetry state schema with a state name of smart_plug_state will be used throughout this guide. Code below shows several examples when listening to changes and invoke functions …