This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to printf to BLE Central (iPhone)

Unfortunately it is only ever explained here how printf is possible via UART. I wonder how printf is possible over BLE. I would like to send messages (strings) with numerical values to a logging app on the phone (and commands from the phone to the BLE device for execution, e.g. changing config data).

So how would I use printf to embed the numbers into strings and send them using the nus service? (without having to reinvent the wheel).

Parents
  • Hello,

    So how would I use printf to embed the numbers into strings and send them using the nus service? (without having to reinvent the wheel).

    Could it be an option to just use the BLE NUS service directly, with no use of the printf function?
    The printf function are retargetted to the UART using the retarget library, but there is no implementation for it to retarget to the BLE NUS service.

    Are you already familiar with the BLE NUS service and how to use it?

    Best regards,
    Karl

Reply
  • Hello,

    So how would I use printf to embed the numbers into strings and send them using the nus service? (without having to reinvent the wheel).

    Could it be an option to just use the BLE NUS service directly, with no use of the printf function?
    The printf function are retargetted to the UART using the retarget library, but there is no implementation for it to retarget to the BLE NUS service.

    Are you already familiar with the BLE NUS service and how to use it?

    Best regards,
    Karl

Children
No Data
Related