Replies: 1 comment
-
@MoralCode You can still use this app to log sensor values to a file. Here's a simple way to do it: Install Pydroid 3 on your Android device, and it will enable you to run Python scripts. In the onMessage() method, write the sensor values to a file. This file will be saved in your phone's internal storage. ...
log = open("data.txt","w")
def on_message(ws, message):
values = json.loads(message)['values']
x = values[0]
y = values[1]
z = values[2]
log.write(f"x = {x} , y = {y} , z = {z}")
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Seems like being able to write data out to files would enable a lot more use cases, such as Matt did in this video: https://www.youtube.com/watch?v=sB2X5l5CsNs
Beta Was this translation helpful? Give feedback.
All reactions