1 year, 6 months ago.
BLE, SimpleBLE RPC
What is the best way to remotely execute a function on a nRF51822 using BLE protocol? Until now I didn't need it, just read and write data but in this case be able to remotely start the execution of a function (or a class method) would simplify my source code.
The function should return an int and accept 4 parameters.
Question relating to:
1 year, 5 months ago.
Best solution might be an overstatement, but I can think of one: Have one Characteristic for the parameters that can only be written to (supports Write). The limitation is that the parameters should be fixed, and if there are several functions you would need an opcode. Then have another Characteristic for the result, which can notify or indicate. Group them in an RPC service.
To post an answer, please log in.