ArduinoModbus
ArduinoModbus copied to clipboard
modbus.c -> modbus.cpp
This change was necessary to us, due to some c++ code that we include in one of our pins_arduino.h, which avoid the user the need to include other libraries to support some internal functionalities in our boards. We freeze the latest ArduinoModbus library version with our BSP, and the modbus.c was causing compilation issues.
Is also some how an small step forward to modernize a little the library code 😉
Memory usage change @ 0ffc5a79ccb797457038104bdda6bd4ed22b950f
| Board | flash | % | RAM for global variables | % |
|---|---|---|---|---|
arduino:mbed_nano:nano33ble |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_opta:opta |
:small_red_triangle: 0 - +64 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_portenta:envie_m7 |
N/A | N/A | N/A | N/A |
arduino:megaavr:uno2018:mode=off |
:grey_question: -12 - +12 | -0.02 - +0.02 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwifi1010 |
:small_red_triangle: 0 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Click for full report table
| Board | examples/RTU/ModbusRTUClientKitchenSinkflash |
% | examples/RTU/ModbusRTUClientKitchenSinkRAM for global variables |
% | examples/RTU/ModbusRTUClientMD02TemperatureHumiditySensorflash |
% | examples/RTU/ModbusRTUClientMD02TemperatureHumiditySensorRAM for global variables |
% | examples/RTU/ModbusRTUClientParametersflash |
% | examples/RTU/ModbusRTUClientParametersRAM for global variables |
% | examples/RTU/ModbusRTUClientToggleflash |
% | examples/RTU/ModbusRTUClientToggleRAM for global variables |
% | examples/RTU/ModbusRTUServerKitchenSinkflash |
% | examples/RTU/ModbusRTUServerKitchenSinkRAM for global variables |
% | examples/RTU/ModbusRTUServerLEDflash |
% | examples/RTU/ModbusRTUServerLEDRAM for global variables |
% | examples/RTU/ModbusRTUTemperatureSensorflash |
% | examples/RTU/ModbusRTUTemperatureSensorRAM for global variables |
% | examples/TCP/EthernetModbusClientToggleflash |
% | examples/TCP/EthernetModbusClientToggleRAM for global variables |
% | examples/TCP/EthernetModbusServerLEDflash |
% | examples/TCP/EthernetModbusServerLEDRAM for global variables |
% | examples/TCP/WiFiModbusClientToggleflash |
% | examples/TCP/WiFiModbusClientToggleRAM for global variables |
% | examples/TCP/WiFiModbusServerLEDflash |
% | examples/TCP/WiFiModbusServerLEDRAM for global variables |
% |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arduino:mbed_nano:nano33ble |
0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | ||||||||||||||||
arduino:mbed_opta:opta |
0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 64 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | ||||||||
arduino:mbed_portenta:envie_m7 |
N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | ||||||||||||||||
arduino:megaavr:uno2018:mode=off |
0 | 0.0 | 0 | 0.0 | 8 | 0.02 | 0 | 0.0 | 12 | 0.02 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | -2 | -0.0 | 0 | 0.0 | -2 | -0.0 | 0 | 0.0 | 8 | 0.02 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | -12 | -0.02 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | -12 | -0.02 | 0 | 0.0 |
arduino:samd:mkrwifi1010 |
8 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 |
Click for full report CSV
Board,examples/RTU/ModbusRTUClientKitchenSink<br>flash,%,examples/RTU/ModbusRTUClientKitchenSink<br>RAM for global variables,%,examples/RTU/ModbusRTUClientMD02TemperatureHumiditySensor<br>flash,%,examples/RTU/ModbusRTUClientMD02TemperatureHumiditySensor<br>RAM for global variables,%,examples/RTU/ModbusRTUClientParameters<br>flash,%,examples/RTU/ModbusRTUClientParameters<br>RAM for global variables,%,examples/RTU/ModbusRTUClientToggle<br>flash,%,examples/RTU/ModbusRTUClientToggle<br>RAM for global variables,%,examples/RTU/ModbusRTUServerKitchenSink<br>flash,%,examples/RTU/ModbusRTUServerKitchenSink<br>RAM for global variables,%,examples/RTU/ModbusRTUServerLED<br>flash,%,examples/RTU/ModbusRTUServerLED<br>RAM for global variables,%,examples/RTU/ModbusRTUTemperatureSensor<br>flash,%,examples/RTU/ModbusRTUTemperatureSensor<br>RAM for global variables,%,examples/TCP/EthernetModbusClientToggle<br>flash,%,examples/TCP/EthernetModbusClientToggle<br>RAM for global variables,%,examples/TCP/EthernetModbusServerLED<br>flash,%,examples/TCP/EthernetModbusServerLED<br>RAM for global variables,%,examples/TCP/WiFiModbusClientToggle<br>flash,%,examples/TCP/WiFiModbusClientToggle<br>RAM for global variables,%,examples/TCP/WiFiModbusServerLED<br>flash,%,examples/TCP/WiFiModbusServerLED<br>RAM for global variables,%
arduino:mbed_nano:nano33ble,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_opta:opta,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,,,,,,,,
arduino:megaavr:uno2018:mode=off,0,0.0,0,0.0,8,0.02,0,0.0,12,0.02,0,0.0,0,0.0,0,0.0,-2,-0.0,0,0.0,-2,-0.0,0,0.0,8,0.02,0,0.0,0,0.0,0,0.0,-12,-0.02,0,0.0,0,0.0,0,0.0,-12,-0.02,0,0.0
arduino:samd:mkrwifi1010,8,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Pedro Marquez seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.