aoabook / Arduino

This is all the Arduino code for the book in a single repository, unlike the Java code, the Arduino one is very compact, and it would make little sense to separate it in different repositories. It also includes the libraries used for the projects.
12 stars 20 forks source link

Publish message #2

Open andreucci opened 10 years ago

andreucci commented 10 years ago

Hi Andreas, I'm doing a lot of test to understand the origin of the communication issue. I saw your suggestion to shift to [2] the payload start. Anyway i's not sufficient. Numbers shown of the App changes with the potmeter rotation but with no sense. I added some Serial.print in the P2PMQTT.cpp to check what was passed to the USB driver, just after the topic name "us", rotating the potmeter I have the strange ascii characters, but not related to the value red by the analog input. Changing the type of val from int to byte to char, what I read change but I don't manage to see on the serial something understandable VS analog read value. Furthermore, the issue I told you (the stuck at value 120 read by the analog port) is still there. I think the problem is on the Arduino code side. On the Android side we should go back to [0] as payload start, as the classes and method seem to be ok. Do you have an idea? tnx, Andrea.

agoransson commented 10 years ago

Hey hey

I'll have a look at this. Stay tuned.