Skip to content

Http connector for particle cloud (direct-particle-connect)

License

Notifications You must be signed in to change notification settings

99x-incubator/particle-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Particle-Connect

Join the chat at https://gitter.im//particle-connect/Lobby

POST and GET requests through particle photon without using Particle Cloud functions.

Guide

  • Connect Particle photon to the cloud.
  • Open Particle WebIDE
  • Paste the Particle-Connect code
  • if you face a error with importing the libraries delete import statements
    #include "application.h"
    #include "HttpClient/HttpClient.h"
  • include libraries by Libraries >> {Library Name} >> include in App
    request.hostname = "yourhost.com";
    request.port = 80;
    request.path = "/yourc/path";
  • Replace hostname , port , path with yours server details.
     request.body = "json : sample" ;
  • Replace json:sample with Variable values , that needed to be transmitted to the server. Eg :
     String str =  "temperature: " + temperatureReading ;
     request.body = str ;

Libraries

  • HTTPClient for SparkCore.

Contributing

We love our contributors! If you'd like to contribute to the project, feel free to submit a PR. But please keep in mind the following guidelines:

Propose your changes before you start working on a PR. You can reach us by submitting a Github issue. This is just to make sure that no one else is working on the same change, and to figure out the best way to solve the issue. If you're out of ideas, but still want to contribute, help us in solving Github issues already verified. Contributions are not just PRs! We'd be grateful for having you, and if you could provide some support for new comers, that be great! You can also do that by answering this plugin related questions on Stackoverflow. You can also contribute by writing. Feel free to let us know if you want to publish a useful guides, improve the documentation (attributed to you, thank you!) that you feel will help the community.

License

MIT

About

Http connector for particle cloud (direct-particle-connect)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages