You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Sun 2019.06.16

    Hello @user97106,

    'I send literal 'FF' for 255'

    Besides Octal, Hex is the next step up from just sending Binary! Not sure I really understand where the connection is missed? BCD - Binary Coded Decimal?

    Javascript is on the send side, whereas Java in on the receive side. So sending hex data as you are, seems the best route for language compatibility. Isn't sending a lightweight payload a goal here?



    There are many excellent tutorials within the MDBT42Q web page:

    http://www.espruino.com/MDBT42Q
    http://www.espruino.com/BLE+Communicatio­ns

    Short of that I used our old friend Google with the 'site:' keyword qualifier:

    Google:    how to send an array of data over ble site:espruino.com

    https://www.espruino.com/Reference#t_l_N­RF_setAdvertising

    and an example that was posted in the forum with corresponding source code:

    http://forum.espruino.com/conversations/­306687/


    re: 'without having to decode ASCII characeters (sic) in the iphone app'

    Consider sending an encoded Json packet?    Base64 encoding?


    As a suggestion, post both sides of the communication as it exists now, so that we may better understand where the current thinking is.

About

Avatar for Robin @Robin started