The hardware was assembled by connecting the Arduino UNO R4 WiFi, the PZEM 004T, the current transformer, and the OLED ...
* arduino-cli compile --fqbn arduino:mbed_opta:opta examples/opta_opcua_server -v --build-property compiler.cpp.extra_flags="-DUSE_MODBUS_SENSOR_MD02=1" -u -p /dev ...
else: randfloat = 11.01 # construct a random float to send SEND_BYTES = b'\x44\x66' + struct.pack ('f', randfloat) # third entry of stuff to send is the packed version of the generated float ...