Closed gerwindehaan closed 5 days ago
We have shared the patch here https://github.com/apple/swift-embedded-examples/issues/17#issuecomment-2174479217
Thanks, after applying this patch to my esp-idf
source solves the issue with .random
and the sample works as advertised. Closing as this is tracked by https://github.com/apple/swift-embedded-examples/issues/17 and https://github.com/apple/swift-matter-examples/issues/5
I experience a crash/bootloop on the
esp32-led-strip-sdk
example when run on my ESP32-C6I traced it down to the use of
.random
in the led strip color generation (it works if I avoid that). The behavior is illustrated by the following minimal snippet:Running this on device causes a crash when the
.random
is invoked, followed by a reboot. When compiling this sample (or anything where.random
is spawned, a warning is spawned around_getentropy
:I am wondering if this has to do with my configuration of the device, or that I should somehow enable the random generator RNG when Wifi/BLE are off .