jingoro2112 / wrench

practical embedded script interpreter
MIT License
99 stars 10 forks source link

wr_makeCharArray #7

Closed travisapple closed 1 year ago

travisapple commented 1 year ago

First off. Wrench is fantastic. Curt, this project has saved my ass and will be running on an ESP32 in a product in the agriculture industry.

However, I need to push a string into a Wrench function. wrench.h defines

void wr_makeCharArray( WRValue val, const unsigned char data, const int len );

but wrench.cpp doesn't show any code for it. wr_makeInt() and wr_makeFloat() are there but not this one.

jingoro2112 commented 1 year ago

Wow cool! yeah I'll fix this up!

On Wed, Feb 22, 2023 at 11:40 PM travisapple @.***> wrote:

First off. Wrench is fantastic. Curt, this project has saved my ass and will be running on an ESP32 in a product in the agriculture industry.

However, I need to push a string into a Wrench function. wrench.h defines

void wr_makeCharArray( WRValue val, const unsigned char data, const int len );

but wrench.cpp doesn't show any code for it. wr_makeInt() and wr_makeFloat() are there but not this one.

— Reply to this email directly, view it on GitHub https://github.com/jingoro2112/wrench/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALIKAYJBM45CHIMRKTAS2TWY3S4NANCNFSM6AAAAAAVFEQGKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

travisapple commented 1 year ago

Thank you!

FYI: I have a class of devices in the field powered by ESP32 chips (with wifi) that test for crop disease. These devices need to have their code updated ALL THE TIME and this code is extremely security sensitive. They're physically all over the place so I cannot flash them all manually.

The devices will now be able to 're-flash' themselves over the internet with new C++ code (Wrench) every day. Using public/private keys this code will be completely encrypted during transfer. It's perfect!

jingoro2112 commented 1 year ago

This has been amended and fixed, along with a couple of bugfixes and enhancements.