Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:ein-mqtt-server-fuer-iot-telemetry-sensoren [2023/11/09 15:08] – [4. The visualization of the telemetry data with the help of Grafana] grayapp-notes:ein-mqtt-server-fuer-iot-telemetry-sensoren [2025/11/07 14:02] (current) – [Prerequisites] gray
Line 9: Line 9:
  
   * NetModule Wireless Router with wireless connection   * NetModule Wireless Router with wireless connection
-  * NRSW NRSW [[https://share.netmodule.com/public/system-software/4.3/4.3.0.119/|4.3.0.119]] or newer+  * NetModule SW [[https://share.netmodule.com/public/system-software/archive/4.8/4.8.0.105/|4.8.0.105]] or newer
   * A license is required for the LXC container   * A license is required for the LXC container
   * Not available for legacy products NB1600, NB2700, NB3700, NB3710   * Not available for legacy products NB1600, NB2700, NB3700, NB3710
Line 32: Line 32:
 Query measurement data from an IoT device (in this example a Shelly Plus H&T) with an SDK script via the MQTT interface.The ''SDK-API'' for the MQTT commands can be found under this link. Query measurement data from an IoT device (in this example a Shelly Plus H&T) with an SDK script via the MQTT interface.The ''SDK-API'' for the MQTT commands can be found under this link.
  
-[[https://share.netmodule.com/public/system-software/4.6/4.6.0.101/NB_SDK_API_Manual_4.6.0.101.pdf|link SDK API]]+[[https://share.netmodule.com/public/system-software/archive/4.8/4.8.0.105/NB_SDK_API_Manual_4.8.0.105.pdf|link SDK API]]
  
 What data is required: What data is required:
Line 66: Line 66:
  if(DEBUG) printf("%s\n", MESSAGE);  if(DEBUG) printf("%s\n", MESSAGE);
     /* publish the message to mqtt broker Temperature */     /* publish the message to mqtt broker Temperature */
- ret = nb_mqtt_publish(HOST, PORT, USERNAME, PASSWORD, TOPIC, QOS, RETAIN, MESSAGE);+ ret = nb_mqtt_publish(HOST, PORT, USERNAME, PASSWORD, TOPIC, QOS, RETAIN, MESSAGE);;
  if (ret<0){  if (ret<0){
    nb_syslog("Failed to publish mqtt message");    nb_syslog("Failed to publish mqtt message");
Line 90: Line 90:
  if(DEBUG) printf("%s\n", MESSAGE4);  if(DEBUG) printf("%s\n", MESSAGE4);
     /* publish the message to mqtt broker Sys */     /* publish the message to mqtt broker Sys */
- ret = nb_mqtt_publish(HOST, PORT, USERNAME, PASSWORD, TOPIC, QOS, RETAIN, MESSAGE4);+ ret = nb_mqtt_publish(HOST, PORT, USERNAME, PASSWORD, TOPIC, QOS, RETAIN, MESSAGE4); 
  if (ret<0){  if (ret<0){
    nb_syslog("Failed to publish mqtt message");    nb_syslog("Failed to publish mqtt message");