首页 文章

自定义构建NodeMCU固件的问题,将自定义构建固件刷新到ESP-12E模块后,会显示以下错误消息

提问于
浏览
1

在ESP-12E模块gpio,定时器,文件,wifi,mqtt,tcp和udp连接上闪烁的NodeMCU_float_0.9.6-dev_20150704正在运行没有问题,但我尝试HTTP请求,如HTTP GET和POST现在这次它给出错误

尝试索引全局'http'(零值))

HTTP GET请求代码

http.get("http://httpbin.org/ip", nil, function(code, data)
    if (code < 0) then
      print("HTTP request failed")
    else
      print(code, data)
    end
  end)

它将错误消息作为

PANIC:调用Lua API时出现无保护错误(test.lua:1:尝试索引全局'http'(零值))

我认为我使用Flashed NodeMCU_float_0.9.6-dev_20150704的固件版本不包含HTTP模块,并在刷新此自定义构建固件后构建了带有http,mqtt,net,node,wifi,timer,uart,file和gpio的自定义构建固件有争议地发送错误消息

ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 29308, room 16 
tail 12
chksum 0x9c
ho 0 tail 12 room 4
load 0x3ffe8000, len 2228, room 12 
tail 8
chksum 0xe5
load 0x3ffe88b4, len 8, room 0 
tail 8
chksum 0x86
csum 0x86
Fatal exception 0(IllegalInstructionCause):
epc1=0x40270858, epc2=0x00000000, epc3=0x00000000, excvaddr=0x4026d205, depc=0x00000000

波特率为748800

1 回答

相关问题