ESP8266HueEmulator: I can't compile the code

Please advise for any mistake I did. I can’t get through this. Thank you so much

WARNING: Category '' in library Digole is not valid. Setting to 'Uncategorized'
In file included from /Volumes/XRAIDDrive/GMMTV/Download/ESP8266HueEmulator-master/ESP8266HueEmulator/ESP8266HueEmulator.ino:19:0:
/Users/thom/Documents/Arduino/libraries/aJson-master-2/aJSON.h:92:6: error: conflicting return type specified for 'virtual int aJsonStream::flush()'
  int flush();
      ^
In file included from /Users/thom/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/Stream.h:26:0,
                 from /Users/thom/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/HardwareSerial.h:31,
                 from /Users/thom/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/Arduino.h:246,
                 from sketch/ESP8266HueEmulator.ino.cpp:1:
/Users/thom/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/Print.h:93:22: error:   overriding 'virtual void Print::flush()'
         virtual void flush() { /* Empty implementation for backward compatibility */ }
                      ^
exit status 1
Error compiling for board WeMos D1 mini Pro.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

I use this setting in Arduino flash option.

https://ibb.co/hp60bm

Just guess that some issue post stated that memory is not enough. So I decided go no SPIFFS. It’s working but with crash which it happened and get exception (28) which made it unusable before after crash.

But with no SPIFFS I get it working after it restart.

https://youtu.be/f3rWZggYqII

@gibman

I can confirm that compiling my sketch in Arduino 1.8.4 + 2.4.0 succeeds after your suggested changes.

NOTE 1 : The LightService.ccp tab also references SSDP.h, so I made this additional change there:

//#include "SSDP.h"
#include <ESP8266SSDP.h>

NOTE 2 : I had to select lwIP 1.4, lwIP V2 caused a looping wdt reset

schermafbeelding 2018-02-15 om 12 13 02

Thx for sharing.

Razer implemented Hue Entertainment protocol that is secondary listening service in new Hue Bridge. Is based on udp steaming encrypted with dtls 1.2 psk. This is the reason why is asking for upgrade.