我有两个z1节目,并希望使用网站www.ubidots.com
将温度读数上传到云端我按照链接中提到的步骤进行了操作:
https://www.hackster.io/4348/zolertia-ipv6-6lowpan-ubidots
边界路由器日志:
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:5c0:1400:a::495/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Rime started with address 193.12.0.0.0.0.19.165
MAC c1:0c:00:00:00:00:13:a5 Contiki-2.6-900-ga6227e1 started. Node id is set to 5029.
CSMA ContikiMAC, channel check rate 8 Hz, radio channel 26
Tentative link-local IPv6 address fe80:0000:0000:0000:c30c:0000:0000:13a5
Starting 'Border router process' 'Web server'
*** Address:aaaa::1 => aaaa:0000:0000:0000
Got configuration message of type P
Setting prefix aaaa::
Server IPv6 addresses:
aaaa::c30c:0:0:13a5
fe80::c30c:0:0:13a5
在project-conf.h中添加了Ubidots变量ID
在另一个z1 mote上运行Ubidots-demo.c 我得到了日志:
Ubidots client: STATE_RESOLVING (3)
Ubidots client: STATE_RESOLVING (3)
Ubidots client: STATE_RESOLVING (3)
Ubidots client: STATE_RESOLVING (3)
Ubidots client: STATE_RESOLVING (4)
Ubidots client: STATE_RESOLVING (4)
如果有人也遇到同样的错误 请让我知道我哪里出错了
答案 0 :(得分:-2)
如果使用
,您需要在这里修改您的Ubuntu机器或覆盆子pi以下三个文件需要修改:
etc / sysctl.conf
像这样: http://koo.fi/blog/2013/03/20/linux-ipv6-router-radvd-dhcpv6/再见