Giter Site home page Giter Site logo

­ about mobile-rr HOT 3 CLOSED

idolpx avatar idolpx commented on July 18, 2024
­

from mobile-rr.

Comments (3)

treii28 avatar treii28 commented on July 18, 2024 1

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

from mobile-rr.

DanielL99 avatar DanielL99 commented on July 18, 2024

Open a terminal and try to uninstall ArduinoJson with
pio lib uninstall ArduinoJson
And install ArduinoJson version 5 with
pio lib install [email protected]

For now this project needs an older Version of ArduinoJson

from mobile-rr.

treii28 avatar treii28 commented on July 18, 2024

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

from mobile-rr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.