加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

1-添加自己的Lua执行函数(ESP8266-SDK开发(lua版本))

发布时间:2020-12-14 21:52:15 所属栏目:大数据 来源:网络整理
导读:基础 lua_pushnumber (L,1); lua_pushnumber (L,3); lua_pushnumber (L,4); return 3; ? ? c_sprintf(temp,"%d.%d.%d.%d",IP2STR(pTempIp.ip) ); lua_pushstring( L,temp ); c_sprintf(temp,IP2STR(pTempIp.netmask) ); lua_pushstring( L,IP2STR(pTempIp.gw

基础

lua_pushnumber (L,1);
lua_pushnumber (L,3);
lua_pushnumber (L,4);
return 3;

?

?

c_sprintf(temp,"%d.%d.%d.%d",IP2STR(&pTempIp.ip) );
lua_pushstring( L,temp );
c_sprintf(temp,IP2STR(&pTempIp.netmask) );
lua_pushstring( L,IP2STR(&pTempIp.gw) );
lua_pushstring( L,temp );
return 3;

?

?

?添加的测试程序

?

编译下载固件,(请自行编译Lua版本固件)

?

?

测试?

?

?

?

?为以后做更为实用的功能做铺垫

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读