Function subscribeString

  • Subscribe to a BLE characteristic. Converts the received data to a string

    Parameters

    • characteristic: string

      UUID of the characteristic to subscribe to

    • handler: ((data: string) => void)

      Callback function that will be called with the data received for every notification

        • (data): void
        • Parameters

          • data: string

          Returns void

    Returns Promise<void>