Made another firmware build at nodemcu-build.com.
You successfully commissioned a NodeMCU custom build from the
I included "adc" this time so I can try the following statement in my function pubEvent()
print( adc.readvdd33() )
Found building with adc causes the code to crash at
tmr.alarm(1, 1000, 1, function()
So switched to non-master build:
You successfully commissioned a NodeMCU custom build from the
That fixes it. Maybe. But cannot connect over Wifi now...
Also I can flash firmware and do Lua programming using ESPlorer using just the microUSB connector. Great! No need for 3-wire USB to serial connection :)
Nope "adc" definitely seems to upset "wifi". So giving up.
But this code worked:
if adc.force_init_mode(adc.INIT_VDD33) then node.restart() return -- don't bother continuing, the restart is scheduled end print("System voltage (mV):", adc.readvdd33(0))
By producing..
NodeMCU custom build by frightanic.com
branch: 1.5.4.1-final
commit: b9436bdfa452c098d5cb42a352ca124c80b91b25
SSL: false
modules: adc,dht,file,gpio,mqtt,net,node,tmr,uart,wifi
build created on 2019-04-05 21:10
powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32)
NodeMcu temperature monitor v0.4 05-Apr-19
System voltage (mV): 3014
Configuring WIFI..
nil
> IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
You successfully commissioned a NodeMCU custom build from the
master
branch. You selected the following 11 modules: adc
dht
ds18b20
file
gpio
mqtt
net
node
tmr
uart
wifi
.I included "adc" this time so I can try the following statement in my function pubEvent()
print( adc.readvdd33() )
Found building with adc causes the code to crash at
tmr.alarm(1, 1000, 1, function()
So switched to non-master build:
You successfully commissioned a NodeMCU custom build from the
1.5.4.1-final
branch. You selected the following 10 modules: adc
dht
file
gpio
mqtt
net
node
tmr
uart
wifi
.That fixes it. Maybe. But cannot connect over Wifi now...
Also I can flash firmware and do Lua programming using ESPlorer using just the microUSB connector. Great! No need for 3-wire USB to serial connection :)
Nope "adc" definitely seems to upset "wifi". So giving up.
But this code worked:
if adc.force_init_mode(adc.INIT_VDD33) then node.restart() return -- don't bother continuing, the restart is scheduled end print("System voltage (mV):", adc.readvdd33(0))
By producing..
NodeMCU custom build by frightanic.com
branch: 1.5.4.1-final
commit: b9436bdfa452c098d5cb42a352ca124c80b91b25
SSL: false
modules: adc,dht,file,gpio,mqtt,net,node,tmr,uart,wifi
build created on 2019-04-05 21:10
powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32)
NodeMcu temperature monitor v0.4 05-Apr-19
System voltage (mV): 3014
Configuring WIFI..
nil
> IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
IP unavaiable, Waiting...
Was only nice to have though later voltage monitoring will need it?
Will try one more "dev" firmware build
You successfully commissioned a NodeMCU custom build from the
dev
branch. You selected the following 11 modules: adc
dht
file
gpio
mqtt
net
node
tmr
uart
wifi
.
Fails to build :(
So on to deep sleep mode next :) I will try this first
No comments:
Post a Comment