File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ def on_open(ws):
103
103
print (" connected" )
104
104
105
105
106
- def connect (sensor_type ):
107
- ws = websocket.WebSocketApp(f " ws://192.168.0.102:8081/sensor/connect?type= { sensor_type } " ,
106
+ def connect (url ):
107
+ ws = websocket.WebSocketApp(url ,
108
108
on_open = on_open,
109
109
on_message = on_message,
110
110
on_error = on_error,
@@ -113,8 +113,11 @@ def connect(sensor_type):
113
113
ws.run_forever()
114
114
115
115
116
- connect(" android.sensor.accelerometer" )
116
+ connect(" ws://192.168.0.101:8080/sensor/connect?type=android.sensor.accelerometer" )
117
+
117
118
```
119
+ * Your device's IP might be different when you tap start button, so make sure you are using correct IP address at client side*
120
+
118
121
## Real Time plotting
119
122
See [ Real Time Plot of Accelerometer (Python)] ( https://github.com/umer0586/SensorServer/wiki/Real-Time-Plot-Example-(-Python) ) using this app
120
123
You can’t perform that action at this time.
0 commit comments