0

我正在使用 TelosB motes,需要使用 contiki 实现 SNMP。我在https://github.com/sehgalanuj/contiki-snmp/找到了 ContikiSNMP

它被列为 2.5,它不适用于 COntiki-2.6。我尝试使用 Cooja 模拟 ContikiSNMP 文件夹中的示例程序。但我遇到了错误。有没有解决的办法?

4

1 回答 1

0

我有同样的问题,但我可以使用最小网络节点进行编译,我正在尝试使用天空节点进行编译,如下所示:

./../core/dev/sht11.c:242:3: error: ‘P1DIR’ undeclared (first use in this function)
../../core/dev/sht11.c: In function ‘scmd’:
../../core/dev/sht11.c:266:9: error: ‘P1IN’ undeclared (first use in this function)
../../core/dev/sht11.c:288:5: warning: implicit declaration of function ‘clock_wait’ [-Wimplicit-function-declaration]
make[1]: *** [obj_sky/sht11.o] Error 1
make[1]: Leaving directory `/home/user/contiki-snmp/examples/snmpd-sky'
make: *** [all] Error 2
user@instant-contiki:~/contiki-snmp/examples/snmpd-sky$ 

我使用 Contiki 2.7

谢谢,

于 2014-03-05T18:40:04.063 回答