Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

­ #31

Closed
ghost opened this issue Mar 6, 2019 · 3 comments
Closed

­ #31

ghost opened this issue Mar 6, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 6, 2019

­

@ghost ghost changed the title Platformio stuck on building PlatformIO stuck on building Mar 6, 2019
@ghost ghost changed the title PlatformIO stuck on building PlatformIO not building, errors Mar 6, 2019
@DanielL99
Copy link

Open a terminal and try to uninstall ArduinoJson with
pio lib uninstall ArduinoJson
And install ArduinoJson version 5 with
pio lib install ArduinoJson@5.13.4

For now this project needs an older Version of ArduinoJson

@treii28
Copy link

treii28 commented Mar 13, 2019

Yeah both ArduinoJson and ip_addr have been modified in the more recent esp8266. I ran into this also. Fixing the ArduinoJson lib in your system to a <6 version can avoid the ArduinoJson errors or you can convert the code (line by line) to the new format. (why they didn't rename the lib is beyond me when they change the fundamental way it works)

You can avoid the ip_addr error by changing the ip_addr reference in the code to ip4_addr (as opposed to ip6_addr). Again, why deprecated support wasn't included smh

Another thing that I might suggest is that if the functions are going to be referenced in the code before they are declared in the code (many of the setup* functions appear to have this issue) either re-order the code so the setup functions come first or declare them at the top somewhere. e.g.:

//
//******************************************************************************************
// Forward declaration of methods                                                          *
//******************************************************************************************
int frequency ( char note );
int setupAP ( int chan_selected );
void setupEEPROM();
void setupSPIFFS();
void setupDNSServer();
void setupHTTPServer();
void setupOTAServer();
int scanWiFi ();
void readFile ( String file );
String getSystemInformation();
String getApplicationSettings();
void onTimer ();
void eepromLoad();
void eepromSave();
void eepromInitialize();
String getEEPROM();
bool disconnectStationByIP ( IPAddress station_ip );
bool disconnectStationByMAC ( uint8_t *station_mac );
void wifi_handle_event_cb ( System_Event_t *evt );
void onRequest ( AsyncWebServerRequest *request );
void onEvent ( AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventType type, void *arg, uint8_t *data, size_t len );
void execCommand ( AsyncWebSocketClient *client, char *msg );
void client_status ( AsyncWebSocketClient *client );

I had to add those for it to compile properly in platformio from a standard gcc [cross compile] call

@treii28
Copy link

treii28 commented Mar 13, 2019

I might also strongly suggest that if you are going to use a custom DNSServer, refactor the libs to rename the DNSServer as this should save a lot of headaches over people that have other versions installed. e.g. change DNSServer to rrDNSServer and then modify all references to it in your code and in the library/header

@ghost ghost closed this as completed Mar 13, 2019
@ghost ghost mentioned this issue Mar 13, 2019
Closed
@ghost ghost changed the title PlatformIO not building, errors ­ Aug 7, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants