en-us_commands:reference:imodbusrtumasteradd
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:imodbusrtumasteradd [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:imodbusrtumasteradd [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <code cpp> | <code cpp> | ||
| - | uint16_t data[2]; | + | void setup() { |
| - | bool added = ImodbusRTUmasterAdd( | + | ImodbusRTUmasterInit(Serial2, |
| - | Serial2, 1, 3, 0, 2, data, 200); | + | ImodbusRTUmasterAdd(Serial2, 1, 0x03, 0x00, 1, & |
| + | | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | ImodbusRTUmasterRun(); | ||
| + | } | ||
| </ | </ | ||
| Line 28: | Line 34: | ||
| * 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/imodbusrtumasteradd.1788785567.txt.gz · Last modified: by 127.0.0.1
