Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

RPC MQTT and dallas_temp caused webserver to not work

mtraxmtrax Canberra

Uisng an existing JS script that has a RPC MQTT I attempted to add some code to read from a DS1820 (temp. sensor)
eg
load('api_arduino_onewire.js');
load('api_arduino_dallas_temp.js');

let ow = OneWire.create(pin);
// Initialize DallasTemperature library
let dt = DallasTemperature.create(ow);

After I added the Onewire create code I couldn't connect to the HTTP server .
Not sure if its a bug of I've run out of memory etc..

is this possible ie to use a some code to switch some relays and output some MQTT messages and also use the onewire libraries etc..

Sign In or Register to comment.