2016-12-04 18 views
-1

WebSocketを内部のESP8266にしたいのですが、できません。 私はこのリンクを使って作成しました。 https://github.com/billroy/socket.io-arduino-client 私は、エラーがあるエラーインナーSocketIOClient.hArduino ESP8266 Socket.io Issue

を得る:

In file included from C:\Users\WaffenSS\Desktop\ses\ses.ino:1:0:

C:\Program Files (x86)\Arduino\libraries\SocketIOClient/SocketIOClient.h:44:2: error: "Please specify an interface such as W5100, ENC28J60, or ESP8266"

C:\Program Files (x86)\Arduino\libraries\SocketIOClient/SocketIOClient.h:45:2: error: "above your includes like so : #define ESP8266 "

exit status 1 Error compiling for board Arduino/Genuino Uno.

は、誰もが私を助けることができますがありますか?

答えて

0

Socket.IOはWebSocket用のAPIであり、ほとんどのWebsocketライブラリがこれをサポートしています。

私はこの寄稿者Arduino WebSocket libraryに非常に満足しており、Socket.IOもサポートしています。あなたのSocket.IO exampleはここにあります。ここ

は例の実装におけるsocket.ioのハートビートメッセージのタイプである:

if((now - heartbeatTimestamp) > HEARTBEAT_INTERVAL) { 
    heartbeatTimestamp = now; 
    // socket.io heartbeat message 
    webSocket.sendTXT("2"); 
} 
関連する問題