Git Product home page Git Product logo

arduino's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino's Issues

Having problems in P2PMQTT.h

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

Wrox_AOA_c8p1_Basic_Robot:52: error: 'P2PMQTT' does not name a type

P2PMQTT mqtt(true); // add parameter true for debugging

^

E:\arduino-1.8.5\libraries\AOA_code\Wrox_AOA_c8p1_Basic_Robot\Wrox_AOA_c8p1_Basic_Robot.ino: In function 'void setup()':

Wrox_AOA_c8p1_Basic_Robot:60: error: 'mqtt' was not declared in this scope

mqtt.begin("Basic Robot");

^

E:\arduino-1.8.5\libraries\AOA_code\Wrox_AOA_c8p1_Basic_Robot\Wrox_AOA_c8p1_Basic_Robot.ino: In function 'void loop()':

Wrox_AOA_c8p1_Basic_Robot:70: error: 'mqtt' was not declared in this scope

int type = mqtt.getType(mqtt.buffer);

          ^

Wrox_AOA_c8p1_Basic_Robot:75: error: 'CONNECT' was not declared in this scope

 case CONNECT:

      ^

Wrox_AOA_c8p1_Basic_Robot:79: error: 'PUBLISH' was not declared in this scope

 case PUBLISH:

      ^

exit status 1
'P2PMQTT' does not name a type

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

///
These are the errors i am having while importing P2PMQTT.h in my arduino code

Publish message

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.