Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Michał Moskal c4ffca1c3e
wifi & mqtt fixes (#1296)
* Wait for socket close

* fix ssid reporting

* fix mem leak

* resend subs on re-connect
2021-10-27 01:59:21 +02:00
Michał Moskal f4c3b41cf8
Improve exception handling on esp32 (#1289)
* Use soft_panic() for user errors (when mem-corruption unlikely)

* Improve soft_panic() on esp32

* make stack trace easier to parse
2021-10-20 00:13:13 +02:00
Michał Moskal 8bc1178279
azure iot hub fixes/extensions (#1275)
* Include pxt-common.d.ts for intellisense

* Re-scan wifi at a higher level

* Add net.urlencode/decode

* More logging; once-handlers for mqtt

* Fix connection status checking

* Fix allocateNotifyEvent usage

* Add control.allocateEventSource()

* Twin and sas token handling

* Add azureiot.patchTwin()
Logging fixes

* Add onTwinUpdate

* Starting on sim support

* fix message defragmentation

* fix iothub url...

* Ignore wifi secrets in sim

* Support for https reqs in sim

* Only enable wifi on esp32 and esp32-s2 boards
2021-09-01 03:02:49 +02:00
Michał Moskal 58f1ea42b8
support for ESP32-S2 (#1268)
* Add Makefile for esp32-s2

* Fix read only check on ESP32-S2

* add esp32-specific platform.cpp (with gpio0 reset)

* add settings libs for esp32

* start on wifi lib for esp32

* start on wificontroller class

* connecting to wifi now

* bring in SSL code from jacdac-esp32

* define PXT_IN_ISR on ESP32

* add pxt::memInfo()

* Add suspend/resumeFiber calls to vm

* implement ssl sockets

* use esp_tls

* try to improve socket close handling

* mem-optimization

* allow for event-driven read

* implement event-driven read

* handle console.log()

* Add SSL root certs from Mozilla

* Add let's encrypt X2 cert

* use custom (current) cert bundle

* Add basic digital pins to esp32

* enable gpio0 reset from start

* Bugfix

* Add x-platform pxt::raiseEvent()

* Deal with interrupts

* sort out logging from C

* Fix 1063 assert

* logging fixes

* add vtable to ZPin

* check zpin type

* fix logging in isr

* fix newline in console.log

* implement serial number

* Don't GC-scan EXT-objects

* better way to set target

* Add CDC ACM USB

* better time measure

* implement hf2 over usb serial

* Add S2-specific sdkconfig.defaults

* New certificate list and instructions

* Update certificate source

* Fix regular esp32 build
2021-08-04 21:54:17 +02:00