for example:
1.) turn on board loaded with espruino_nrf52.hex, board starts advertising in jshinit().
2.) connect to board with smartphone
3.) send "digitalWrite(LED_1, 1);" using UART simulated over BLE
4.) LED_1 lights up.
then extend this to sending entire scripts. (currently using nordics nRF Toolbox app and the UART module to send and receive data from espruino).
--My problem
currently this is kind of working.. i can send commands under 20 bytes no problem. but when i send a command like "function a() { 25; }" the chip hard fualts. also for some reason i cant send over ~36 bytes even though i implemented ble long write and not sure why...
I am pretending like I am using EV_SERIAL1 right now. just using pushIOCharEvent like normal and USARTkick.
just looking for some advice on how to make this work. any suggestions/tips? Maybe i have some misunderstanding about how espruino read and writes from the terminal and what it expects? any suggestions on source files that I should look at to get a better idea about this?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
for example:
1.) turn on board loaded with espruino_nrf52.hex, board starts advertising in jshinit().
2.) connect to board with smartphone
3.) send "digitalWrite(LED_1, 1);" using UART simulated over BLE
4.) LED_1 lights up.
then extend this to sending entire scripts. (currently using nordics nRF Toolbox app and the UART module to send and receive data from espruino).
--My problem
currently this is kind of working.. i can send commands under 20 bytes no problem. but when i send a command like "function a() { 25; }" the chip hard fualts. also for some reason i cant send over ~36 bytes even though i implemented ble long write and not sure why...
I am pretending like I am using EV_SERIAL1 right now. just using pushIOCharEvent like normal and USARTkick.
just looking for some advice on how to make this work. any suggestions/tips? Maybe i have some misunderstanding about how espruino read and writes from the terminal and what it expects? any suggestions on source files that I should look at to get a better idea about this?
thanks,
Mike