Command Context

Communicate with the remote device

Platform supports replying or sending data to the remote devices using different protocols like UDP, MQTT, etc.

Platform automatically routes the data to the remote device using the same channel it is already connected to the platform.

📘

Below Context API's are supported for sending data to the remote devices

// Send a raw string data
public void send(String data);

// Send a map as JSON string data
public void send(Map<Object, Object> jsonMap);

// Send a raw binary data
public void send(byte[] data);

// Sends a well formatted command with JSON header and data (*Boodskap preferred)
public void send(int commandId, Map<Object, Object> jsonMap);

When these API's are used in Group contexts like Device Group or Asset Group, the data will be broadcasted to all the devices that belongs to the group