Changes to support MKR 1010 and Nano 33 IOT
Added include guards Removed not needed code
This commit is contained in:
parent
007e1357e3
commit
3e3f93f530
2 changed files with 4 additions and 3 deletions
|
|
@ -12,6 +12,8 @@
|
|||
* All text above must be included in any redistribution.
|
||||
*/
|
||||
|
||||
#ifndef ADAFRUITIO_MKR1010_H
|
||||
#define ADAFRUITIO_MKR1010_H
|
||||
|
||||
#include "AdafruitIO.h"
|
||||
#include "Adafruit_MQTT.h"
|
||||
|
|
@ -78,4 +80,4 @@ protected:
|
|||
WiFiSSLClient *_client;
|
||||
};
|
||||
|
||||
|
||||
#endif ADAFRUITIO_MKR1010_H
|
||||
|
|
|
|||
|
|
@ -130,8 +130,7 @@ protected:
|
|||
_status = AIO_SSID_INVALID;
|
||||
} else {
|
||||
_disconnect();
|
||||
// Comment out line below for MKR1010
|
||||
//WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en); //
|
||||
WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en); //
|
||||
|
||||
// no shield? bail
|
||||
if (WiFi.status() == WL_NO_SHIELD) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue