Skip to content
Discussion options

You must be logged in to vote

Here's my script using modbus bridge to get values into MQTT and InfluxDB. Text values are commented out because I'm decoding in Grafana, which saves memory on ESP8266. Note this uses gemu's ScriptEditor.
In userconfig_override, I have the following defines:

#define SUPPORT_MQTT_EVENT
#define USE_MODBUS_BRIDGE
#define USE_MODBUS_BRIDGE_TCP    //Not necessary, but included it for possible future use
#define USE_SCRIPT
#define USE_SML_M
#define USE_SML_TCP
#define USE_SCRIPT_WEB_DISPLAY
#define USE_SCRIPT_JSON_EXPORT
#define USE_SML_SCRIPT_CMD
#define USE_SCRIPT_TIMER
#define USE_SCRIPT_SUB_COMMAND
#define SCRIPT_MAXSSIZE 64
#define MAXFILT 8    //Not necessary, but included it for possible…

Replies: 9 comments 37 replies

Comment options

You must be logged in to vote
13 replies
@pkkrusty
Comment options

@gemu2015
Comment options

@pkkrusty
Comment options

@gemu2015
Comment options

@pkkrusty
Comment options

Comment options

You must be logged in to vote
2 replies
@pkkrusty
Comment options

@jeroenst
Comment options

Comment options

You must be logged in to vote
2 replies
@pkkrusty
Comment options

@cacengineering
Comment options

Comment options

You must be logged in to vote
7 replies
@krulkip
Comment options

@krulkip
Comment options

@pkkrusty
Comment options

@krulkip
Comment options

@pkkrusty
Comment options

Answer selected by pkkrusty
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pkkrusty
Comment options

Comment options

You must be logged in to vote
5 replies
@pkkrusty
Comment options

@2000ede
Comment options

@pkkrusty
Comment options

@pkkrusty
Comment options

@AlfredR1
Comment options

Comment options

You must be logged in to vote
5 replies
@pkkrusty
Comment options

@AlfredR1
Comment options

@AlfredR1
Comment options

@pkkrusty
Comment options

@2000ede
Comment options

Comment options

You must be logged in to vote
2 replies
@pkkrusty
Comment options

@2000ede
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants