File tree Expand file tree Collapse file tree 3 files changed +24
-9
lines changed Expand file tree Collapse file tree 3 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,9 @@ void errorCallback(char *err, uint16_t len)
35
35
AIO_ERROR_PRINTLN ();
36
36
}
37
37
38
- void AdafruitIO::airliftPins (uint16_t ss, uint16_t ack, uint16_t rst)
38
+ void AdafruitIO::airLiftPins (uint16_t ss, uint16_t ack, uint16_t rst)
39
39
{
40
- _airlift_ss = ss;
41
- _airlift_ack = ack;
42
- _airlift_rst = rst;
40
+ airLiftPins (ss, ack, rst);
43
41
}
44
42
45
43
void AdafruitIO::connect ()
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class AdafruitIO {
45
45
virtual ~AdafruitIO ();
46
46
47
47
void connect ();
48
- void airliftPins (uint16_t ss, uint16_t ack, uint16_t rst);
48
+ // void airliftPins(uint16_t ss, uint16_t ack, uint16_t rst);
49
49
50
50
51
51
void run (uint16_t busywait_ms = 0 );
@@ -69,8 +69,9 @@ class AdafruitIO {
69
69
virtual const char * connectionType () = 0;
70
70
71
71
protected:
72
- uint16_t _airlift_ss, _airlift_ack, _airlift_rst;
72
+ // uint16_t _airlift_ss, _airlift_ack, _airlift_rst;
73
73
virtual void _connect () = 0;
74
+ virtual void airLiftPins (uint16_t ss, uint16_t ack, uint16_t rst) = 0;
74
75
aio_status_t _status = AIO_IDLE;
75
76
uint32_t _last_ping = 0 ;
76
77
Original file line number Diff line number Diff line change 23
23
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
24
24
#define BOARDEF 1
25
25
#define SPIWIFI SPI
26
- #define SPIWIFI_SS _airlift_ss // Chip select pin
27
- #define SPIWIFI_ACK _airlift_ack // a.k.a BUSY or READY pin
28
- #define ESP32_RESETN _airlift_rst // Reset pin
26
+ #define SPIWIFI_SS airlift_ss // Chip select pin
27
+ #define SPIWIFI_ACK airlift_ack // a.k.a BUSY or READY pin
28
+ #define ESP32_RESETN airlift_rst // Reset pin
29
29
#define ESP32_GPIO0 -1 // Not connected
30
30
#endif
31
31
@@ -109,13 +109,29 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
109
109
return " AIRLIFT" ;
110
110
}
111
111
112
+ void airLiftPins (uint16_t ss, uint16_t ack, uint16_t rst)
113
+ {
114
+ airlift_ss = ss;
115
+ airlift_ack = ack;
116
+ airlift_rst = rst;
117
+ Serial.print (" \n Pins: " );
118
+ Serial.print (airlift_ss);
119
+ Serial.print (airlift_ack);
120
+ Serial.print (airlift_rst);
121
+ Serial.println (" " );
122
+ }
123
+
124
+ uint16_t airlift_ss, airlift_ack, airlift_rst;
125
+
112
126
protected:
113
127
const char *_ssid;
114
128
const char *_pass;
115
129
116
130
WiFiSSLClient *_http_client;
117
131
WiFiSSLClient *_mqtt_client;
118
132
133
+
134
+
119
135
/* *************************************************************************/
120
136
/* !
121
137
@brief Attempts to establish a WiFi connection with the wireless network,
You can’t perform that action at this time.
0 commit comments