Here are the #RustLang Stubs that intercept calls to #BL602 IoT SDK ... And emit the JSON Stream of Events
https://github.com/lupyuen/bl602-simulator/blob/main/bl602-simulator/src/lib.rs#L85-L135
Here's how we compose a JSON Stream of #BL602 Simulation Events in #RustLang
https://gist.github.com/lupyuen/cec1a423062556263a7ba02971862001
Composing JSON in C looks messy ... Let's convert to #RustLang
https://github.com/lupyuen/bl602-simulator/blob/main/wasm/wasm.c
What drives the #BL602 #RustLang Simulator in #WebAssembly? A JSON Stream of Simulation Events!
https://lupyuen.github.io/articles/wasm#simulate-bl602-hardware
#BL602 #RustLang Firmware runs OK with #WebAssembly ... When we reused the WebAssembly Stubs from uLisp yay! 🎉
To compile #BL602 #RustLang Firmware into #WebAssembly ... 1️⃣ Change "no_std" to "libc" 2️⃣ Exclude the Panic Handler
https://github.com/lupyuen/bl602-simulator/blob/main/sdk_app_rust_gpio/rust/src/lib.rs
Can we Simulate #BL602 #RustLang Firmware in a Web Browser with #WebAssembly? ... So we can make a PineDio Stack Simulator? 🤔
TYWE2S seems to be an RTOS + Form Factor for ESP8285 🤔
https://developer.tuya.com/en/docs/iot/wifie2smodule?id=K9605u79tgxug
Made some fixes while updating #BL602 IoT SDK ... Great time for Regression Testing on PineDio Stack!
Merging updates from #BL602 IoT SDK to my repo ... And getting ready to test on PineDio Stack! (When it arrives)
How we generated the #RustLang Wrapper for #BL602 IoT SDK
https://lupyuen.github.io/articles/adc?22#appendix-generating-the-rust-wrapper-for-bl602-iot-sdk
#RustLang Wrapper for #BL602 is auto-generated from BL602 IoT SDK
https://lupyuen.github.io/articles/adc?20#rust-wrapper-for-bl602-iot-sdk
IoT Techie and Educator / Apache NuttX PMC