You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while True:
print(peripheral.read(service_uuid, characteristic_uuid))
keeps on printing the last received string again and again until new string is received. Once new string is received, it keeps on printing the new one again and again. I want to print received text only once.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
while True:
print(peripheral.read(service_uuid, characteristic_uuid))
keeps on printing the last received string again and again until new string is received. Once new string is received, it keeps on printing the new one again and again. I want to print received text only once.
Beta Was this translation helpful? Give feedback.
All reactions