Giter Club home page Giter Club logo

makingthingstalk2's Introduction

Making Things Talk

These code samples, in Arduino, Processing, and PHP, are for my book Making Things Talk, second and third editions. All of the latest material is in the 3rd_edition directory.

The book itself is copyrighted material, published under a Creative Commons CC-NC-ND license. As for the code:

This code is here to help you make things. In general, you may use this code in your programs and documentation. You do not need to contact me for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this repository does not require permission. Selling or distributing a CD-ROM of examples from this repository does require permission. Answering a question by citing this material and quoting example code does not require permission. Incorporating a significant amount of example code from this repository into your product’s documentation does require permission.

I appreciate, but do not require, attribution. An attribution usually includes the title, author, and source URL.

If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact me.

-Tom Igoe

makingthingstalk2's People

Contributors

dependabot[bot] avatar don avatar tigoe avatar

Stargazers

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

Watchers

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

makingthingstalk2's Issues

No need to wait after Wire.requestFrom()

In the file "MakingThingsTalk2/chapter9/project27/SonMicroFirmware/SonMicroFirmware.ino" these lines can be removed after the Wire.requestFrom():

  // don't do anything until new bytes arrive:
  while(!Wire.available()) {
    delay(50);
  }

There is nothing to wait for. When the Wire.requestFrom() returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.

Can we make Central talk to Peripheral by Key Press?

I want that after getting connection central can able to send data to peripheral and perform various task like Glowing LED.
I am able to send the data from central but the problem is that m not able to know where data is being received into peripheral.
Can you guide me in that?

MQTT needs .onMessage(callback);

April 2020 -- playing with :

MakingThingsTalk2/3rd_edition/chapter10/catCamDeux/AirConditionerArduino/AirConditionerArduino.ino

Could not receive MQQT messages until .onMessage(messageReceived); is added

end of setup looks like :

client.begin(mqttServerAddress, netSocket);
client.onMessage(messageReceived); // ***** add this line
mqttConnect();

s

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.