@@ -13,9 +13,7 @@ TLS 1.0 支持
TLS 1.1 支持
TLS 1.2 支持
TLS 1.3 默认未开启, 未测试
-SSL 3.0, 默认禁用
-加密套件请查询:https://wiki.luatos.com/chips/air780e/network.html#tls
如需使用ipv6, 请查阅 demo/ipv6, 本demo只涉及ipv4
]]
@@ -80,8 +80,6 @@ sys.taskInit(function()
while 1 do
-- 清屏,默认背景色
lcd.clear()
- --log.info("wiki", "https://wiki.luatos.com/api/lcd.html")
- -- API 文档 https://wiki.luatos.com/api/lcd.html
if lcd.showImage then
-- 注意, jpg需要是常规格式, 不能是渐进式JPG
-- 如果无法解码, 可以用画图工具另存为,新文件就能解码了
@@ -73,7 +73,7 @@ end
-- 5. opts.firmware_name string 底层版本号
-- 请求的版本号, 合宙IOT有一套版本号体系,不传就是合宙规则, 自建服务器的话当然是自行约定版本号了
version = ""
- -- 其他更多参数, 请查阅libfota2的文档 https://wiki.luatos.com/api/libs/libfota2.html
+ -- 其他更多参数, 请查阅libfota2的文档 https://docs.openluat.com/osapi/ext/libfota2/
}]]--
sys.taskInit(function()
-- 这个判断是提醒要设置PRODUCT_KEY的,实际生产请删除
@@ -9,7 +9,7 @@ log.info("main", PROJECT, VERSION)
_G.sys = require("sys")
local function pinx()
- -- AIR780E -- 35是虚拟GPIO,见https://wiki.luatos.com/chips/air780e/iomux.html#id1
+ -- AIR780E -- 35是虚拟GPIO
return 35
end
- -- AIR780E -- 33是虚拟GPIO,见https://wiki.luatos.com/chips/air780e/iomux.html#id1
+ -- AIR780E -- 33是虚拟GPIO
return 24, 33
@@ -39,7 +39,7 @@
</div>
<div>
- <h4>Power by <a href="https://wiki.luatos.com">LuatOS</a></h4>
+ <h4>Power by <a href="https://docs.openluat.com">LuatOS</a></h4>
</body>
</html>
@@ -79,8 +79,6 @@ sys.taskInit(function()
- log.info("wiki", "https://wiki.luatos.com/api/lcd.html")
@@ -44,7 +44,7 @@ else
pm.power(pm.USB, false)-- 如果是插着USB测试,需要关闭USB
pm.force(pm.LIGHT)
- -- 如果要测试保持网络连接状态下的功耗,需要iotpower来测试 https://wiki.luatos.com/iotpower/power/index.html 购买链接 https://item.taobao.com/item.htm?id=679899121798
+ -- 如果要测试保持网络连接状态下的功耗,需要iotpower来测试
-- 如果只是看普通休眠状态下的底电流,需要进入飞行模式
-- log.info("普通休眠测试,进入飞行模式来保持稳定的电流")
-- mobile.flymode(0, true)
@@ -83,9 +83,6 @@ sys.taskInit(function ()
tmp = str:split("/", true)
log.info("str.split", #tmp, json.encode(tmp))
- -- 更多资料
- -- https://wiki.luatos.com/develop/hex_string.html
- -- https://wiki.luatos.com/_static/lua53doc/manual.html#3.4
end)
-- 用户代码已结束---------------------------------------------
@@ -42,8 +42,6 @@ VERSION = "2.0.0"
以780E开发板为例, 需要1.5版本或以上,团购版本均为1.5或以上.
1.4版本SPI分布有所不同, 注意区分.
-https://wiki.luatos.com/chips/air780e/board.html
-
xx脚指开发板pinout图上的顺序编号, 非GPIO编号
Flash -- 开发板
@@ -165,7 +165,7 @@ sys.taskInit(function()
-- qrcode测试
sys.wait(1000)
u8g2.ClearBuffer()
- u8g2.DrawDrcode(4, 4, "https://wiki.luatos.com", 30);
+ u8g2.DrawDrcode(4, 4, "https://docs.openluat.com", 30);
u8g2.SendBuffer()
@@ -97,7 +97,7 @@ local opts = {
}
@@ -73,7 +73,7 @@ local opts = {
-- version = ""
@@ -89,7 +89,7 @@ local opts = {
function fota_task_func()
@@ -56,7 +56,6 @@ function lcd_test_func()
log.info("图片显示")
@@ -42,7 +42,7 @@ function little_flash_func()
log.info("fsstat", fs.fsstat("/little_flash"))
-- 挂载成功后,可以像操作文件一样操作
- --以写模式打开文件,并返回文件句柄,io接口含义可参考lua5.3手册https://wiki.luatos.com/_static/lua53doc/contents.html
+ --以写模式打开文件,并返回文件句柄
local f = io.open("/little_flash/test", "w")
local write_str = os.date()
log.info("/little_flash/test文件写入数据",write_str)
@@ -91,9 +91,6 @@ sys.taskInit(function ()
log.info("str.split", #tmp, json.encode(tmp)) --日志输出:6 ["","tmp","","def","1234",""]
-- 这里演示4G模块上网后,会自动点亮网络灯,方便用户判断模块是否正常开机
@@ -143,7 +143,7 @@ sys.taskInit(function()
@@ -55,7 +55,6 @@ sys.taskInit(function()
-- lcd.autoFlush(false)
lcd.clear() --全局刷屏
- log.info("wiki API 文档", "https://wiki.luatos.com/api/lcd.html")
@@ -61,7 +61,6 @@ sys.taskInit(function()
log.info("打开背光", blk(0))
-- while 1 do
-- lcd.clear() --全局刷屏
- -- log.info("wiki API 文档", "https://wiki.luatos.com/api/lcd.html")
-- if lcd.showImage then
-- -- 注意, jpg需要是常规格式, 不能是渐进式JPG
-- -- 如果无法解码, 可以用画图工具另存为,新文件就能解码了
@@ -59,7 +59,6 @@ sys.taskInit(function()
@@ -68,7 +68,6 @@ sys.taskInit(function()
log.info("合宙 780EPM LCD演示")
@@ -72,7 +72,7 @@ local opts = {
@@ -24,7 +24,6 @@ local function lcd_task()
log.info("合宙 Air8000 LCD演示")
if io.exists(show_picture) ~= true then
log.info("picture.jpg 不存在,请检查下载的文件")
sys.wait(100)
@@ -21,7 +21,7 @@
@@ -352,8 +352,6 @@ sys.taskInit(function()
-- lcd.clear()
- -- log.info("wiki", "https://wiki.luatos.com/api/lcd.html")
- -- -- API 文档 https://wiki.luatos.com/api/lcd.html
-- -- if lcd.showImage then
@@ -100,7 +100,7 @@ local ota_opts = {
--version = ""
@@ -164,7 +164,7 @@
<button onclick="wifi_ipstat()">检查状态</button>