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 137
137
#define HAS_TCP
138
138
#endif
139
139
140
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W )
141
+ #define BOARD_HAS_SECRET_KEY
142
+ #define HAS_TCP
143
+ #endif
144
+
140
145
#if defined(BOARD_HAS_SOFTSE ) || defined(BOARD_HAS_OFFLOADED_ECCX08 ) || defined(BOARD_HAS_ECCX08 ) || defined(BOARD_HAS_SE050 )
141
146
#define BOARD_HAS_SECURE_ELEMENT
142
147
#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 @@ -355,6 +355,7 @@ void TimeServiceClass::initRTC()
355
355
esp8266_initRTC ();
356
356
#elif defined (ARDUINO_ARCH_RENESAS)
357
357
renesas_initRTC ();
358
+ #elif defined (ARDUINO_RASPBERRY_PI_PICO_W)
358
359
#else
359
360
#error "RTC not available for this architecture"
360
361
#endif
@@ -374,6 +375,7 @@ void TimeServiceClass::setRTC(unsigned long time)
374
375
esp8266_setRTC (time );
375
376
#elif defined (ARDUINO_ARCH_RENESAS)
376
377
renesas_setRTC (time );
378
+ #elif defined (ARDUINO_RASPBERRY_PI_PICO_W)
377
379
#else
378
380
#error "RTC not available for this architecture"
379
381
#endif
@@ -393,6 +395,8 @@ unsigned long TimeServiceClass::getRTC()
393
395
return esp8266_getRTC ();
394
396
#elif defined (ARDUINO_ARCH_RENESAS)
395
397
return renesas_getRTC ();
398
+ #elif defined (ARDUINO_RASPBERRY_PI_PICO_W)
399
+ return 1 ;
396
400
#else
397
401
#error "RTC not available for this architecture"
398
402
#endif
You can’t perform that action at this time.
0 commit comments