Comments (3)
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.
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.
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)
- The embed_media function in the www_proc.py script is causing issues.
- Feature: Disconnect station from AP after receiving Rick Roll
- error: '_ws_client' was not declared in this scope HOT 5
- SSID changes not processed HOT 5
- Too many redirects on windows, ios and android HOT 1
- Broadcast SSID remains unchanged after changing variable HOT 1
- Browser Error HOT 3
- lib ESPAsyncWebServer not installed HOT 1
- no loading/welcome page pop-up HOT 1
- Unable to build -> '_ws_client' does not name a type HOT 7
- Can't log in to console HOT 3
- Curiosity HOT 3
- HOT 1
- Can't build mobile-rr in Atom or VSCode with Platformio HOT 5
- 'class DNSServer' has no member named 'onquery' HOT 5
- serial.serialutil.SerialException: [Errno 2] could not open port /dev/cu.wchusbserial14440: [Errno 2] No such file or directory: '/dev/cu.wchusbserial14440' HOT 4
- Can we still make this work? HOT 3
- What libraries are needed I cant compile it?!
- Error when compiling HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-rr.