Skip to content

Commit c4f4121

Browse files
committed
added support for esp8266
1 parent 27bae58 commit c4f4121

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

library.properties

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name=PxServ
2-
version=1.0.6
2+
version=1.0.7
33
author=mustafa_kok
44
maintainer=PxServ
5-
sentence=PxServ Library for Arduino / ESP32
6-
paragraph=Thanks to PxServ, get the opportunity to add power to IoT projects that need things like sending data and reading data over WiFi!
5+
sentence=PxServ Library for ESP32 / ESP8266
6+
paragraph=Enhance your IoT projects with PxServ by enabling data transmission and retrieval over WiFi!
77
category=*
88
url=https://github.com/pxserv/pxserv.arduino
99
architectures=*
10+
depends=Arduino_JSON

src/PxServ.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
#include <Arduino_JSON.h>
55
#include <Arduino.h>
66

7+
#if defined(ESP32)
78
#include <WiFi.h>
89
#include <WiFiMulti.h>
910
#include <HTTPClient.h>
1011
#include <WiFiClientSecure.h>
12+
#elif defined(ESP8266)
13+
#include <ESP8266WiFi.h>
14+
#include <ESP8266HTTPClient.h>
15+
#include <WiFiClientSecureBearSSL.h>
16+
#endif
1117

1218
class PxServ
1319
{

0 commit comments

Comments
 (0)