en-us_commands:reference:imodbusrtumasterrun
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:imodbusrtumasterrun [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:imodbusrtumasterrun [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| <code cpp> | <code cpp> | ||
| + | void setup() { | ||
| + | ImodbusRTUmasterInit(Serial2, | ||
| + | ImodbusRTUmasterAdd(Serial2, | ||
| + | ImodbusRTUmasterAdd(Serial2, | ||
| + | } | ||
| + | |||
| void loop() { | void loop() { | ||
| - | | + | ImodbusRTUmasterRun(); |
| - | if (state != IMODBUS_RTU_SUCCESS && | + | |
| - | state != IMODBUS_RTU_BUSY && | + | |
| - | state != IMODBUS_RTU_IDLE) { | + | |
| - | debugln(state, | + | |
| - | } | + | |
| } | } | ||
| </ | </ | ||
| Line 34: | Line 35: | ||
| * When sharing '' | * When sharing '' | ||
| * Memory allocation functions do not return success status. For nonzero sizes, verify that '' | * Memory allocation functions do not return success status. For nonzero sizes, verify that '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/imodbusrtumasterrun.1788785567.txt.gz · Last modified: by 127.0.0.1
