Wifi softAp - http setter

Hi,
I’m developing a firmware that needs to be configured. It’s a simple configuration, only a couple of int vars to be written in eeprom. Sometimes there is no wifi connection, so I need another way to and save and read those vars…
Watching around I found this

There is a setter method, that only accepts cc key, that works in AP mode…
Is possible to change that to call a custom function and to pass it the key-value received from the setter method? I believe that are only a few lines of code in the firmware, but I don’t know how to call a function in my code from the particle firmware…
In this way It should be possible to configure the photon in softAP mode and eventually, with a getter method, to get the value of some vars…

Has anyone done already something like that?
Thanks a lot
Flavio

1 Like

I want to open up the HTTP server that is made available during SoftAP mode so that applications can add their own functionality there. Would that provide what you’re looking for?

2 Likes

It would be perfect! It’s a new request or it’s somenthing you are already looking into?
Right now I modified the method set to write on eeprom and it works, but something more generic it’s the best idea…
Thanks a lot
Flavio

1 Like

Will it be available in 0.5.0?

Yes! The PR is here - https://github.com/spark/firmware/pull/906

1 Like