send writes a fixed [pin, level] and wifi writes ssid\npass — both hardcoded payloads. Firmware that needs any other command (set a threshold, switch a mode, send a string) can't be driven without a bespoke client.
Add a generic command verb that writes arbitrary bytes / a string / JSON to the board's writable characteristic, and make send and wifi thin sugar over it. Keeps the BLE-property contract (runtime._pick) intact.
sendwrites a fixed[pin, level]andwifiwritesssid\npass— both hardcoded payloads. Firmware that needs any other command (set a threshold, switch a mode, send a string) can't be driven without a bespoke client.Add a generic command verb that writes arbitrary bytes / a string / JSON to the board's writable characteristic, and make
sendandwifithin sugar over it. Keeps the BLE-property contract (runtime._pick) intact.