File tree 6 files changed +42
-6
lines changed
WiFiSimpleReceiveCallback
6 files changed +42
-6
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
#include < ArduinoMqttClient.h>
19
- #include < WiFiNINA.h> // for MKR1000 change to: #include <WiFi101.h>
19
+ #if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
20
+ #include < WiFiNINA.h>
21
+ #elif defined(ARDUINO_SAMD_MKR1000)
22
+ #include < WiFi101.h>
23
+ #elif defined(ARDUINO_ESP8266_ESP12)
24
+ #include < ESP8266WiFi.h>
25
+ #endif
20
26
21
27
#include " arduino_secrets.h"
22
28
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
Original file line number Diff line number Diff line change 12
12
*/
13
13
14
14
#include < ArduinoMqttClient.h>
15
- #include < WiFiNINA.h> // for MKR1000 change to: #include <WiFi101.h>
15
+ #if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
16
+ #include < WiFiNINA.h>
17
+ #elif defined(ARDUINO_SAMD_MKR1000)
18
+ #include < WiFi101.h>
19
+ #elif defined(ARDUINO_ESP8266_ESP12)
20
+ #include < ESP8266WiFi.h>
21
+ #endif
16
22
17
23
#include " arduino_secrets.h"
18
24
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
Original file line number Diff line number Diff line change 13
13
*/
14
14
15
15
#include < ArduinoMqttClient.h>
16
- #include < WiFiNINA.h> // for MKR1000 change to: #include <WiFi101.h>
16
+ #if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
17
+ #include < WiFiNINA.h>
18
+ #elif defined(ARDUINO_SAMD_MKR1000)
19
+ #include < WiFi101.h>
20
+ #elif defined(ARDUINO_ESP8266_ESP12)
21
+ #include < ESP8266WiFi.h>
22
+ #endif
17
23
18
24
#include " arduino_secrets.h"
19
25
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
#include < ArduinoMqttClient.h>
14
- #include < WiFiNINA.h> // for MKR1000 change to: #include <WiFi101.h>
14
+ #if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
15
+ #include < WiFiNINA.h>
16
+ #elif defined(ARDUINO_SAMD_MKR1000)
17
+ #include < WiFi101.h>
18
+ #elif defined(ARDUINO_ESP8266_ESP12)
19
+ #include < ESP8266WiFi.h>
20
+ #endif
15
21
16
22
#include " arduino_secrets.h"
17
23
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
Original file line number Diff line number Diff line change 12
12
*/
13
13
14
14
#include < ArduinoMqttClient.h>
15
- #include < WiFiNINA.h> // for MKR1000 change to: #include <WiFi101.h>
15
+ #if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
16
+ #include < WiFiNINA.h>
17
+ #elif defined(ARDUINO_SAMD_MKR1000)
18
+ #include < WiFi101.h>
19
+ #elif defined(ARDUINO_ESP8266_ESP12)
20
+ #include < ESP8266WiFi.h>
21
+ #endif
16
22
17
23
#include " arduino_secrets.h"
18
24
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
#include < ArduinoMqttClient.h>
14
- #include < WiFiNINA.h> // for MKR1000 change to: #include <WiFi101.h>
14
+ #if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
15
+ #include < WiFiNINA.h>
16
+ #elif defined(ARDUINO_SAMD_MKR1000)
17
+ #include < WiFi101.h>
18
+ #elif defined(ARDUINO_ESP8266_ESP12)
19
+ #include < ESP8266WiFi.h>
20
+ #endif
15
21
16
22
#include " arduino_secrets.h"
17
23
// /////please enter your sensitive data in the Secret tab/arduino_secrets.h
You can’t perform that action at this time.
0 commit comments