Mebm
1.0.0
|
Tutorial number 1: Sending messages using Mebm.
Lets say we have an Arduino in the kitchen, and it has a thermometer sensor attached. We want to send a message over the network to a hypothetical destination we call the "receiverNode", telling it what the temperature is every few seconds. In this example we simulate a temperature sensor with a function which returns a random value between 0 and 50 C with the function getTemperature().