add reference to external Scheduler and update library dependencies
This commit is contained in:
parent
252e01b8cf
commit
7d8fe613f0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Wifi",
|
"name": "Wifi",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"description": "Helper classes for handling wifi connectiviy and OTA",
|
"description": "Helper classes for handling wifi connectiviy and OTA",
|
||||||
"repository":
|
"repository":
|
||||||
{
|
{
|
||||||
@ -15,6 +15,9 @@
|
|||||||
"maintainer": true
|
"maintainer": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"arkhipenko/TaskScheduler": "^3.8.5"
|
||||||
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*"
|
"platforms": "*"
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
#include <ArduinoOTA.h>
|
#include <ArduinoOTA.h>
|
||||||
|
#include <TaskScheduler.h>
|
||||||
|
|
||||||
|
extern Scheduler ts;
|
||||||
|
|
||||||
namespace Ota {
|
namespace Ota {
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
#include <ESP8266WiFi.h>
|
#include <ESP8266WiFi.h>
|
||||||
#include <ESP8266mDNS.h>
|
#include <ESP8266mDNS.h>
|
||||||
|
#include <TaskScheduler.h>
|
||||||
#include "credentials.h"
|
#include "credentials.h"
|
||||||
|
|
||||||
|
extern Scheduler ts;
|
||||||
|
|
||||||
namespace Wifi {
|
namespace Wifi {
|
||||||
|
|
||||||
WiFiEventHandler stationConnectedHandler;
|
WiFiEventHandler stationConnectedHandler;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user