【NO.21】(已更新) Ulink——基于微信的物联网平台-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

【NO.21】(已更新) Ulink——基于微信的物联网平台

  [复制链接]
发表于 2016-2-18 23:28 | 显示全部楼层
这个好,简单实用
发表于 2016-3-1 11:34 | 显示全部楼层
sunnyboy 发表于 2015-7-22 20:28
为什么我做的一直配置失败?请问你当时做的时候有什么注意事项么?

同样的问题,为什么在微信测试平台里面一直提示匹配失败?求大神详解~
发表于 2016-3-2 13:11 | 显示全部楼层
本帖最后由 shsuming 于 2016-3-2 13:12 编辑
sunnyboy 发表于 2015-7-22 20:28
为什么我做的一直配置失败?请问你当时做的时候有什么注意事项么?

终于知道为什么了。。。要在第34行 echo $_GET['echostr'];前加header('content-type:text');
在index.php的构造函数中将原来的exit($_GET['echostr'])改为:
header('content-type:text');
        echo $_GET['echostr'];
        exit();
就可以了http://bbs.csdn.net/topics/391022271
发表于 2016-3-12 22:08 | 显示全部楼层
本帖最后由 shsuming 于 2016-3-13 21:30 编辑

没有看到开关灯的效果,程序和数据库里面的状态都是正常的,微信发指令的时候,switch值有变化。就是没看到开关灯的效果~LED负——D7,LED正——5V,是这么接的么?
发表于 2016-4-19 14:29 | 显示全部楼层
测试账户+PHP,挺有意思。
发表于 2016-4-21 21:46 | 显示全部楼层
比人家落后了好久了,只能用无语表达心中的佩服和无奈了
发表于 2016-5-15 10:28 | 显示全部楼层
高三 确实是挺屌 现在在哪里上学?
发表于 2016-5-17 21:34 | 显示全部楼层
楼主呀!新人表示到这边出错
Arduino:1.6.9 (Windows 7), 开发板:"Arduino Nano, ATmega328"

C:\Users\daosheng\Documents\Arduino\sketch_may17a\sketch_may17a.ino:21:43: warning: integer overflow in expression [-Woverflow]

const unsigned long postingInterval = 200*1000;  

                                           ^

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bit(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bit()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write(unsigned char, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned int, bool)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bytes(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::select(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::skip()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::depower()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset_search()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::search(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc8(unsigned char*, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc16(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bit(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bit()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write(unsigned char, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned int, bool)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bytes(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::select(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::skip()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::depower()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset_search()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::search(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc8(unsigned char*, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc16(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 Arduino Nano 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
Arduino:1.6.9 (Windows 7), 开发板:"Arduino Nano, ATmega328"

C:\Users\daosheng\Documents\Arduino\sketch_may17a\sketch_may17a.ino:21:43: warning: integer overflow in expression [-Woverflow]

const unsigned long postingInterval = 200*1000;  

                                           ^

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bit(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bit()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write(unsigned char, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned int, bool)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bytes(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::select(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::skip()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::depower()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset_search()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::search(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc8(unsigned char*, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc16(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

sketch\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

sketch\OneWire/OneWire.cpp:120: multiple definition of `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bit(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bit()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write(unsigned char, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned int, bool)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::read_bytes(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::select(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::skip()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::depower()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::reset_search()'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::OneWire(unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::search(unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc8(unsigned char*, unsigned char)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::crc16(unsigned char*, unsigned int)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

libraries\OneWire\OneWire.cpp.o: In function `OneWire::reset()':

C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 Arduino Nano 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
发表于 2016-5-17 21:34 | 显示全部楼层
C:\Users\daosheng\Documents\Arduino\libraries\OneWire/OneWire.cpp:120: multiple definition of `OneWire::check_crc16(unsigned char*, unsigned int, unsigned char*)'

sketch\OneWire.cpp.o:sketch/OneWire.cpp:120: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 Arduino Nano 编译时出错。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-12-1 01:24 , Processed in 0.141281 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表