Comments (5)
I can give you some pointers but I am not going to be able to make this change. The whole point of blue dot is that it is a simple interface with 1 function, it is a solution to get started.
If you look at the button activity in the BlueDot:
-
It creates a connection to bluetooth
-
When touch events are detected it calls pressed, released, moved functions
-
These functions construct a message which conforms to the format [operator], [x], [y]\n
-
They then use the send function to pass the message to the server
These messages end up being managed by dot.py in bluedot python library
https://github.com/martinohanlon/BlueDot/blob/master/bluedot/dot.py:
-
When the server receives data from the client it passes it to BlueDot._data_received
-
_data_received makes sure only complete messages (those which end in \n) are processed and passes them to _process_commands
-
_process_commands splits the command into its component parts (operator, x, y) and calls the relevant function to state whether it was pressed, moved, released.
You could feasibly change the app to send a new message with a different operator and modify _process_commands to process that new operator in whatever way you wanted.
I hope that helps.
from bluedot.
What additional data do you want to send?
from bluedot.
A string type data, for example Name of the home wi-fi Network and it's password.
from bluedot.
It's me again 😆
I've changed some things in the android app so I send a command with code 3.
I've added the case 3 in dot.py and i think it should work, but how can I recompile the project and installing it. I've tried with
setup.py clean
setup.py build
setup.py install
But when i call my function it says "SyntaxError: ivalid syntax" is there something that i have missed with the build and install process, or the error is somewhere in my function/code/dot.py ?
Is there any possible way to debug just dot.py ?
from bluedot.
If you are receiving syntax error it will be because you have an error in your code.
You can use setup.py develop
to install a development code of a python library.
from bluedot.
Related Issues (20)
- auto run from Pi's Shell HOT 6
- BLE communication between two Raspberry Pi 4 HOT 1
- Documentation: requirement for python-dbus (dbus-python) no longer directly mentioned in docs HOT 4
- Android app not able to connect to Pi HOT 2
- Unablet to connect HOT 13
- Not required "import os" in a recipe
- Web Bluetooth support and GATT HOT 5
- No Attribute AF_BLUETOOTH HOT 2
- Multiple pictures with pi cam
- not possible to check when bluetooth connexion in on HOT 2
- Send connection request from BluetoothServer side as well HOT 2
- Update BlueDot android app to latest google API level HOT 1
- Bluedot android app crashes on pi connection HOT 14
- can't bluedot be used in devices other than raspberry pi ? HOT 10
- Using Blue Dot with Raspberry Pi and HC-05 HOT 2
- Randomly getting ConnectionAbortedError on receive data and 'Transport endpoint is not connected' on send data errors HOT 1
- Raspbery Pi Pico W with Bluetooth HOT 5
- Sending feedback to android client HOT 2
- Update installation documentation for Raspberry Pi 'bookworm' OS
- Bluedot android app crashes on first launch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluedot.