latest changes on bluetooth.h / bluetooth.c

Posted on
  • To get Espruino(ESP32) compiled with USE_BLUETOOTH=1 changed this
    added includes to bluetooth.h
    #include "jsutils.h"
    #include "jsvar.h"

    added variables in bluetooth.c, I'm pretty sure there's a better way, but to avoid side conflicts, ...
    volatile BLEStatus bleStatus;
    uint16_t bleAdvertisingInterval;
    volatile uint16_t m_conn_handle;

  • That sounds right - on nrf5x they're defined in Bluetooth.c as well I believe?

    You can add BLUETOOTH to's libraries list I believe, and USE_BLUETOOTH gets automatically added.

    I'm surprised about needing to change bluetooth.h though - I managed to get a Linux build with USE_BLUETOOTH just by tweaking the .py file

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

latest changes on bluetooth.h / bluetooth.c

Posted by Avatar for JumJum @JumJum