极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10897|回复: 1

請問 yeelink 的庫, 是否只支援 Arduino IDE 1.5.X

[复制链接]
发表于 2014-9-5 23:18:18 | 显示全部楼层 |阅读模式
小弟初接觸物聯網, 嘗試用 yeelink 作測試.
在 LED 的範例非常順利, 便進一步想嘗試上傳資料.

按以下連結測試:  http://www.yeelink.net/developer/doc/48

但我試好幾遍, 在 sublime 或 Arduino 1.0.5r2 都會出現 error,

Creating E:\Arduino\Sketchbook\Sketchbook.1.0.5\build\yeelink_DHT11\WiFiClient.cpp.o...
In file included from E:\Arduino\IDE\arduino-1.0.5-r2\hardware\arduino\cores\arduino/Arduino.h:192,
                 from E:\Arduino\IDE\arduino-1.0.5-r2\libraries\SPI/SPI.h:15,
                 from E:\Arduino\IDE\arduino-1.0.5-r2\libraries\Ethernet\utility/w5100.h:14,
                 from E:\Arduino\IDE\arduino-1.0.5-r2\libraries\Ethernet\utility/socket.h:4,
                 from E:\Arduino\IDE\arduino-1.0.5-r2\libraries\WiFi\WiFiClient.cpp:4:
E:\Arduino\IDE\arduino-1.0.5-r2\hardware\arduino\cores\arduino/WString.h:116: error: declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)' conflicts with
:
:

之後開啟 YeeLinkLab post_value_data_point, 同樣出現相同 error.  但同樣在 1.5.7 中又是完全沒問題.

由於已習慣了用 Sublime 開發, Arduino 的 UI 真的受不了, 但 Sublime 不支援 1.5.7.
所以想確認一下, 我的庫是按指示在這裡 ( https://github.com/qinqingege/YeeLinkLib ) 下載的, 是否有另一套庫是給 1.0.5 用的.


另外, 在這裡找了不少例子, 但好像都不是用 yeelinklab 的, 是否有什麼原因? 我猜可能是 yeelink 的庫太耗資源了, 對嗎? (為了配合不同用家, yeelinklab 的庫好像把不同的 network 庫也載入了)
回复

使用道具 举报

 楼主| 发表于 2014-9-5 23:52:06 | 显示全部楼层
在這裡找到一個帖:
http://www.geek-workshop.com/thread-1294-1-2.html

再連到這裡的例子:
http://blog.yeelink.net/?p=34

太好了, 一個簡單的發送資料範例, 只要修改了讀取資料的部份就可以用了.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-19 16:54 , Processed in 0.035906 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

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