You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check if modbus server is running\nif ! pgrep -f "modbusim tcp" > /dev/null; then\n exit 1\nfi\n\n# Check if we can connect to the Modbus server\nif ! nc -z localhost 5020; then\n exit 1\nfi\n\n# Check if we can read from the device (if using RTU)\nif [ "$MODBUS_MODE" = "rtu" ] && [ -e "$MODBUS_PORT" ]; then\n if ! stty -F "$MODBUS_PORT" -a > /dev/null 2>&1; then\n exit 1\n fi\nfi\n\nexit 0\n' > /healthcheck.sh && \