ESP8266 AirKiss NFF
来自Jack's Lab
(版本间的差异)
(→概述) |
(→概述) |
||
第1行: | 第1行: | ||
== 概述 == | == 概述 == | ||
− | + | 设备主动定时(5s 一次)往 255.255.255.255 这个地址的 12476 端口,广播数据包: | |
+ | |||
+ | <source lang=bash> | ||
+ | comcat@jackslab:/work/xwifi/noduino-sdk/lib$ nc -u -l -p 12476 | xxd -g 1 | ||
+ | 0000000: fd 01 fe fc 00 10 00 01 00 00 00 7d 00 00 10 02 ...........}.... | ||
+ | 0000010: 7b 22 64 65 76 69 63 65 49 6e 66 6f 22 3a 7b 22 {"deviceInfo":{" | ||
+ | 0000020: 64 65 76 69 63 65 54 79 70 65 22 3a 22 67 68 5f deviceType":"gh_ | ||
+ | 0000030: 39 35 66 61 65 31 62 61 36 66 61 30 22 2c 22 64 95fae1ba6fa0","d | ||
+ | 0000040: 65 76 69 63 65 49 64 22 3a 22 67 68 5f 39 35 66 eviceId":"gh_95f | ||
+ | 0000050: 61 65 31 62 61 36 66 61 30 5f 38 33 31 32 64 62 ae1ba6fa0_8312db | ||
+ | 0000060: 31 63 37 34 61 36 64 39 37 64 30 34 30 36 33 66 1c74a6d97d04063f | ||
+ | </source> | ||
<br><br> | <br><br> |
2015年11月12日 (四) 23:08的版本
1 概述
设备主动定时(5s 一次)往 255.255.255.255 这个地址的 12476 端口,广播数据包:
comcat@jackslab:/work/xwifi/noduino-sdk/lib$ nc -u -l -p 12476 | xxd -g 1 0000000: fd 01 fe fc 00 10 00 01 00 00 00 7d 00 00 10 02 ...........}.... 0000010: 7b 22 64 65 76 69 63 65 49 6e 66 6f 22 3a 7b 22 {"deviceInfo":{" 0000020: 64 65 76 69 63 65 54 79 70 65 22 3a 22 67 68 5f deviceType":"gh_ 0000030: 39 35 66 61 65 31 62 61 36 66 61 30 22 2c 22 64 95fae1ba6fa0","d 0000040: 65 76 69 63 65 49 64 22 3a 22 67 68 5f 39 35 66 eviceId":"gh_95f 0000050: 61 65 31 62 61 36 66 61 30 5f 38 33 31 32 64 62 ae1ba6fa0_8312db 0000060: 31 63 37 34 61 36 64 39 37 64 30 34 30 36 33 66 1c74a6d97d04063f
2 快速尝试
Noduino Falcon 开发板 或 nodemcu v1.0 开发板,USB 连上 PC
下载 SDK:
# clone the whole sdk $ git clone git://github.com/icamgo/noduino-sdk.git noduino-sdk # fetch the toolchain of esp8266 $ cd noduino-sdk $ git submodule init $ git submodule update $ cd toolchain $ ./gen.py # generate the toolchain (you need Python 2.7)
插上开发板,编译上传一步完成:
$ cd ../example/wechat-airkiss-nff $ make flash
打开微信,扫一扫如下二维码,直接进入微信,自动开始探测设备:
3 参考
- 微信设备授权新接口:http://iot.weixin.qq.com/document-2_11.html
- “型号码”帮助企业简化设备生产
- 型号二维码介绍:http://iot.weixin.qq.com/document-7_3.html