Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud messaging #7

Open
pbecchi opened this issue Oct 11, 2017 · 2 comments
Open

Cloud messaging #7

pbecchi opened this issue Oct 11, 2017 · 2 comments

Comments

@pbecchi
Copy link

pbecchi commented Oct 11, 2017

All cloud related function from SG21 and OS 2.1.7 have been moved from main.cpp to cloud.cpp a new module I have added (BTW main.cpp was getting to large and complex!!)
We have to discuss more about all cloud related features we want to add to the ESP32 code so it is better to keep this as a separate task and complete first the implementation of sensor related parts.
Meanwhile it will be usefull to have a description of the new functions you have introduced and how they related to 2.1.7 IFTTT implementation.

@tcsaba101
Copy link
Owner

Ok, Good idea, because additional cloud functions are coming. I only got the structure of http POST-ing from IFTTT function, and from server.cpp the content of http sendings.

@tcstmarkt
Copy link

The Cloud protocol is basically the API_217 with some extended commands. You can see in https://github.com/tcsaba101/SG21/blob/Cloud_testing/Documents/Tables_SG_20_v06.xlsx.
Some more commands will be added, relating to sensors and cloud comm.
The "Firmware as a Client" is sending the same content to the Internet Cloud as sending to the mobile UI as a Server on UI calls (what is processed in server.cpp).
There is one function in main.cpp (what we will move to cloud module) where I tried to cy the content sending from server.cpp, packed in a http POST package.

The cloud sending basics is quite simple:
concatenate the content in one json string,
then calling the POST sending EtherCard function.

The hardest part is to understand how the OS217 and UI communicating originally.

Today only the sending is operative.
The receiving part is under development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants