根据这个教程(50 元内自制短信转发器)过一遍就行,踩坑如下:
问题: 虽然适配了长短信,但是还有一些奇奇怪怪的问题,应该是 notify 和 main 有冲突。
[2022-11-13 19:06:06.906] I/user.sms recv 10681982580146303 NN
[g
[2022-11-13 19:06:06.906] 0 22/11/13,19:06:04+32 true 2 2
[2022-11-13 19:06:06.906] I/user.notify got sms 10681982580146303 NN
[g
[2022-11-13 19:06:06.906] 0
[2022-11-13 19:06:06.906] ww 32.71777
[2022-11-13 19:06:06.922] I/user.notify len,offset 5 0
[2022-11-13 19:06:06.922] I/user.notify send to luatos push server 京东客服。
[2022-11-13 19:06:06.922] I/http HTTP GET
[2022-11-13 19:06:07.515] D/http esp_http_client_perform 0
[2022-11-13 19:06:07.515] I/user.notify pushed sms notify 200 table: 3FCACA90 {"code":200,"message":"success","timestamp":1668337568} 10681982580146303
[2022-11-13 19:06:07.515] I/user.notify len,offset2 -35 40
[2022-11-13 19:06:07.515] I/user.notify wait for a new sms~
[2022-11-13 19:06:07.515] zzz 34.68848
[2022-11-13 19:06:18.467] I/user.sms recv 10681982580146303 0 N 琋
0 殞嬃 x N:I/user.air780 found a long sms 2 1
[2022-11-13 19:08:18.472] I/user.notify got sms 10681982580146303 0 NN
0 x N:ww 32.81738
[2022-11-13 19:08:18.472] I/user.notify len,offset 67 0
[2022-11-13 19:08:18.472] I/user.notify send to luatos push server [京东] 验证码为 613056 ,请确认本人操作,切勿泄露给他人,请在找回密码页面中
[2022-11-13 19:08:18.472] I/http HTTP GET
[2022-11-13 19:08:19.029] D/http esp_http_client_perform 0
[2022-11-13 19:08:19.033] I/user.notify pushed sms notify 200 table: 3FCB4430 {"code":200,"message":"success","timestamp":1668337699} 10681982580146303
[2022-11-13 19:08:19.033] I/user.notify len,offset2 27 40
[2022-11-13 19:08:19.040] I/user.notify len,offset 27 40
[2022-11-13 19:08:19.043] I/user.notify send to luatos push server 完成验证,如有问题点击 ihelp.jd.com 联系
[2022-11-13 19:08:19.043] I/http HTTP GET
[2022-11-13 19:08:19.049] I/user.notify pushed sms notify -4 nil nil 10681982580146303
[2022-11-13 19:08:24.073] I/http HTTP GET
[2022-11-13 19:08:24.614] D/http esp_http_client_perform 0
[2022-11-13 19:08:24.614] I/user.notify pushed sms notify 200 table: 3FCAD250 {"code":200,"message":"success","timestamp":1668337705} 10681982580146303
[2022-11-13 19:08:24.614] I/user.notify len,offset2 -13 80
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.