Python Forum
Bluetooth send message after connecting? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Bluetooth send message after connecting? (/thread-33435.html)



Bluetooth send message after connecting? - korenron - Apr-25-2021

Hello,
I'm running python on my PI-Zero
and I want to the following :
1. be able to change the BLuetooth name from the code (NOT BLE , simple\rugular Bluetooth)
2. when someone connect to my PI:
print it's device MAC , send him a small text message , disconnect him

how do I start ? what do I need to have ? and can I do this ?

again not in BLE mode ,
Thanks ,


RE: Bluetooth send message after connecting? - Larz60+ - Apr-25-2021

You might possibly find something that does that here:
https://learn.adafruit.com/bluefruit-le-python-library?view=all


RE: Bluetooth send message after connecting? - korenron - Apr-26-2021

mo ,
this is a BLE
ad I need want to use the "old" bluetooth BT V2\V3