File tree 7 files changed +18
-3
lines changed
7 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 134
134
#define HAS_TCP
135
135
#endif
136
136
137
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W )
138
+ #define BOARD_HAS_SECRET_KEY
139
+ #define HAS_TCP
140
+ #endif
141
+
137
142
#if defined(BOARD_HAS_SOFTSE ) || defined(BOARD_HAS_OFFLOADED_ECCX08 ) || defined(BOARD_HAS_ECCX08 ) || defined(BOARD_HAS_SE050 )
138
143
#define BOARD_HAS_SECURE_ELEMENT
139
144
#endif
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ static const unsigned char x509_crt_bundle[] = {
240
240
0x00 , 0x01
241
241
};
242
242
243
- #elif defined (ARDUINO_EDGE_CONTROL )
243
+ #elif defined (ARDUINO_EDGE_CONTROL ) || defined ( ARDUINO_RASPBERRY_PI_PICO_W )
244
244
/*
245
245
* https://www.amazontrust.com/repository/AmazonRootCA1.pem
246
246
* https://www.amazontrust.com/repository/AmazonRootCA2.pem
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ void TLSClientMqtt::begin(ConnectionHandler & connection) {
59
59
* https://github.com/arduino/uno-r4-wifi-usb-bridge/blob/f09ca94fdcab845b8368d4435fdac9f6999d21d2/certificates/certificates.pem#L852
60
60
*/
61
61
(void )connection;
62
+ #elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
63
+ setCACert (AIoTUPCert);
62
64
#elif defined(ARDUINO_ARCH_ESP32)
63
65
#if (ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 0, 4))
64
66
setCACertBundle (x509_crt_bundle);
Original file line number Diff line number Diff line change 54
54
*/
55
55
#include < WiFiSSLClient.h>
56
56
class TLSClientMqtt : public WiFiSSLClient {
57
- #elif defined(BOARD_ESP)
57
+ #elif defined(BOARD_ESP) || defined(ARDUINO_RASPBERRY_PI_PICO_W)
58
58
/*
59
59
* ESP32*
60
60
* ESP82*
61
+ * PICOW
61
62
*/
62
63
#include < WiFiClientSecure.h>
63
64
class TLSClientMqtt : public WiFiClientSecure {
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ void TLSClientOta::begin(ConnectionHandler &connection) {
55
55
* https://github.com/arduino-libraries/Arduino_ESP32_OTA/blob/fc755e7d1d3946232107e2590662ee08d6ccdec4/src/tls/amazon_root_ca.h
56
56
*/
57
57
(void )connection;
58
+ #elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
59
+ setCACert (AIoTUPCert);
58
60
#elif defined(ARDUINO_ARCH_ESP32)
59
61
#if (ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 0, 4))
60
62
setCACertBundle (x509_crt_bundle);
Original file line number Diff line number Diff line change 54
54
*/
55
55
#include < WiFiSSLClient.h>
56
56
class TLSClientOta : public WiFiSSLClient {
57
- #elif defined(BOARD_ESP)
57
+ #elif defined(BOARD_ESP) || defined(ARDUINO_RASPBERRY_PI_PICO_W)
58
58
/*
59
59
* ESP32*
60
60
* ESP82*
61
+ * PICOW
61
62
*/
62
63
#include < WiFiClientSecure.h>
63
64
class TLSClientOta : public WiFiClientSecure {
Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ void TimeServiceClass::initRTC()
341
341
esp8266_initRTC ();
342
342
#elif defined (ARDUINO_ARCH_RENESAS)
343
343
renesas_initRTC ();
344
+ #elif defined (ARDUINO_RASPBERRY_PI_PICO_W)
344
345
#else
345
346
#error "RTC not available for this architecture"
346
347
#endif
@@ -358,6 +359,7 @@ void TimeServiceClass::setRTC(unsigned long time)
358
359
esp8266_setRTC (time );
359
360
#elif defined (ARDUINO_ARCH_RENESAS)
360
361
renesas_setRTC (time );
362
+ #elif defined (ARDUINO_RASPBERRY_PI_PICO_W)
361
363
#else
362
364
#error "RTC not available for this architecture"
363
365
#endif
@@ -375,6 +377,8 @@ unsigned long TimeServiceClass::getRTC()
375
377
return esp8266_getRTC ();
376
378
#elif defined (ARDUINO_ARCH_RENESAS)
377
379
return renesas_getRTC ();
380
+ #elif defined (ARDUINO_RASPBERRY_PI_PICO_W)
381
+ return 1 ;
378
382
#else
379
383
#error "RTC not available for this architecture"
380
384
#endif
You can’t perform that action at this time.
0 commit comments