stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
425 stars 346 forks source link

telelogger_esp8266 error compiling #78

Open ghost opened 5 years ago

ghost commented 5 years ago

Just got the FreematicsOne and gave the telelogger example a try, but it failed with "Error compiling".

Arduino IDE output details:

telelogger_esp8266.ino:65:1: error: ‘CStorageRAM’ does not name a type
telelogger_esp8266.ino: In function ‘bool notifyServer(byte, const char*, const char*)’:
telelogger_esp8266.ino:88:3: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino:111:18: error: ‘EVENT_ACK’ was not declared in this scope
telelogger_esp8266.ino:132:18: error: ‘EVENT_LOGIN’ was not declared in this scope
telelogger_esp8266.ino: In function ‘bool login()’:
telelogger_esp8266.ino:158:23: error: ‘EVENT_LOGIN’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void transmit()’:
telelogger_esp8266.ino:176:3: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino: In function ‘int logOBDPID(byte)’:
telelogger_esp8266.ino:213:5: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void processOBD()’:
telelogger_esp8266.ino:231:3: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void processGPS()’:
telelogger_esp8266.ino:257:9: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void processMEMS()’:
telelogger_esp8266.ino:283:3: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino: In function ‘bool initialize()’:
telelogger_esp8266.ino:364:22: error: ‘class UDPClientESP8266AT’ has no member named ‘deviceName’
telelogger_esp8266.ino: In function ‘bool processCommand(char*)’:
telelogger_esp8266.ino:477:24: error: ‘EVENT_ACK’ was not declared in this scope
telelogger_esp8266.ino:488:24: error: ‘EVENT_ACK’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void process()’:
telelogger_esp8266.ino:502:3: error: ‘cache’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void shutDownNet()’:
telelogger_esp8266.ino:540:20: error: ‘class UDPClientESP8266AT’ has no member named ‘deviceName’
telelogger_esp8266.ino: In function ‘void standby()’:
telelogger_esp8266.ino:551:20: error: ‘EVENT_LOGOUT’ was not declared in this scope
telelogger_esp8266.ino: In function ‘void idleTasks()’:
telelogger_esp8266.ino:611:12: error: ‘EVENT_COMMAND’ was not declared in this scope
telelogger_esp8266.ino:614:12: error: ‘EVENT_SYNC’ was not declared in this scope

I added the FreematicsONE library, no missing includes.

Any hints?