错误:' serverHandshake'未在此范围内声明

时间:2016-04-02 04:25:39

标签: socket.io arduino

#include <WebSocketClient.h>
#include <string.h>
#include <stdlib.h>
#include <Arduino.h>
#include <SocketIOClient.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <SPI.h>
#include <WiFi.h>

#define SSID "D"
#define PASS "qwertypoiu"

int keyIndex = 0;                                // your network key Index number
int status = WL_IDLE_STATUS;  
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
char server[] = "ec2-52-38-82-235.us-west-2.compute.amazonaws.com:8000";
WebSocketClient client;
void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) 
  {
  SoftwareSerial esp8266Module(10,11);

  Serial.begin(9600);
  Ethernet.begin(mac);
  client.connect("update trash");
  }
}

void loop() {
  // put your main code here, to run repeatedly:
 client.monitor();
 client.send("56fe4b3368fa1b0edd4b44a1,30");
 delay(2000);
}

上面是我的代码我无法编译代码.error是serverHandshake&#39;在这方面没有申明 。我无法解决任何问题。如果您有任何帮助,我们将不胜感激。

0 个答案:

没有答案