mirror of
https://github.com/grblHAL/core.git
synced 2026-03-23 11:32:44 +08:00
Added virtual Modbus API. Some internal settings handling improvements.
This commit is contained in:
@@ -218,6 +218,15 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MODBUS_RTU_ENABLED 0b001
|
||||
#define MODBUS_RTU_DIR_ENABLED 0b010
|
||||
#define MODBUS_TCP_ENABLED 0b100
|
||||
|
||||
#if MODBUS_ENABLE == 2
|
||||
#undef MOBUS_ENABLE
|
||||
#define MOBUS_ENABLE 0b011
|
||||
#endif
|
||||
|
||||
#ifndef MODBUS_ENABLE
|
||||
#if VFD_ENABLE
|
||||
#define MODBUS_ENABLE 1
|
||||
@@ -371,6 +380,9 @@
|
||||
#ifndef NETWORK_HTTP_PORT
|
||||
#define NETWORK_HTTP_PORT 80
|
||||
#endif
|
||||
#ifndef NETWORK_MODBUS_PORT
|
||||
#define NETWORK_MODBUS_PORT 502
|
||||
#endif
|
||||
#ifndef NETWORK_MQTT_PORT
|
||||
#define NETWORK_MQTT_PORT 1883
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user