bluetooth-lowenergy

Extracting a streaming return variable in my class

Extracting a streaming return variable in my class Question: I’m using bluepy and I have a base code to read values comming from an arduino now I have the problem that when I try to extrac the variable num or tum from def handleNotification I don’t have any succes in the code: So I want …

Total answers: 1

Receive data via bluetooth using python on android phone

Receive data via bluetooth using python on android phone Question: I have an ESP32 board which sends data via bluetooth. I can receive data on PC using this python code: from bluetooth import * import sys def input_and_send(): while True: data = input() if len(data) == 0: break sock.send(data) sock.send("n") def rx_and_echo(): sock.send("nsend anythingn") while …

Total answers: 1

How do I selectively edit hex bytes in a byte array without changing other

How do I selectively edit hex bytes in a byte array without changing other Question: I’m writing a python program that is sending a byte array to a BLE device using a byte array. I can manipulate the data sent to the device and that works. The device is an 8 button Bluetooth switch panel. …

Total answers: 2

How do I activate socket.AF_BLUETOOTH in Python3.6?

How do I activate socket.AF_BLUETOOTH in Python3.6? Question: I’m using Python3.6 standard installation in Windows and I try to do >>>import socket >>>socket.AF_BLUETOOTH The system responds with AttributeError: module ‘socket’ has no attribute ‘AF_BLUETOOTH’ me and a colleague spend already some time reading forums. I scanned through socket.py in PythonPathLib but there is as well …

Total answers: 2

Raspberry pi bluetooth – send data

Raspberry pi bluetooth – send data Question: Before posting this I’ve tried looking for simple program to send any kind of data using BLE with rapsberry pi. But more I got in detail, I knew that there are some BLE library that supports programming using Python on RPi. I’m new to python networking programming and …

Total answers: 1