Giter Club home page Giter Club logo

parse-sdk-arduino's Introduction

WARNING ⚠ - this project has been retired due to lack of use & contribution, if you wish to continue to use it please fork or if you wish to maintain this project make yourself known ⚠

Parse Arduino SDK

Join The Conversation Backers on Open Collective Sponsors on Open Collective License Twitter Follow

Parse Arduino SDK provide support for Arduino Yún..

These SDKs let you use Parse for building Internet of Things (IoT) applications with connected devices. Parse is a developer-friendly cloud platform that lets you get an IoT project running in minutes. With Parse, you can:

  • Build cross-platform integrations between your connected device and mobile/web/desktop apps.

  • Allow your users to personalize and monitor their connected devices.

    • Parse is the easiest way to build user login on mobile apps. Parse also has user session APIs in all mobile SDKs, which let you provision restricted sessions from the phone after the user logs into your app. You can then transfer this restricted session token to your device so that your device can access user-specific data.
    • With Parse APIs, you can build a device manager screen in your mobile app what shows the user's provisioned connected devices (sample app below). At any time, the user can revoke a device from accessing his or her data on Parse.
  • Send push notifications to your connected devices.

  • Securely access your app's data from connected devices.

    • All communication between your connected device's Arduino SDK and the Parse Cloud, including push notifications, is protected by SSL encryption.
    • You can protect user data with Access Control Lists (ACLs) so it can only be accessed with that user's session token.
  • Perform complex application logic in Parse Cloud Code, so you can minimize the memory footprint of your app on your connected device.

  • Send analytics events from your connected devices, and see realtime graphs in your Parse web dashboard.

  • Intuitively visualize your cloud data with the Data Browser on the Parse website.

Getting Started

Please follow our Parse Arduino Quickstart. We highly recommend using Arduino Software (IDE). See the yun directory for more details.

Documentation

Please see the Parse website for detailed developer guides:

Sample App

We prepared a sample app that demonstrates how to provision connected devices using a companion phone app such that connected devices can securely access user-specific data on the Parse Cloud. This sample app also demonstrates how to send push notifications between the phone app and connected devices.

Contributing

See the CONTRIBUTING file for how to help out.

License

Copyright (c) 2015, Parse, LLC. All rights reserved.

You are hereby granted a non-exclusive, worldwide, royalty-free license to use, copy, modify, and distribute this software in source code or binary form for use in connection with the web services and APIs provided by Parse.

As with any software that integrates with the Parse platform, your use of this software is subject to the Parse Terms of Service [https://www.parse.com/about/terms]. This copyright notice shall be included in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.

parse-sdk-arduino's People

Contributors

acinader avatar djmarlow avatar francip avatar georgeyakovlev avatar jaemyoun avatar lacker avatar per1234 avatar ronaldyang avatar stanleyw avatar tomwfox 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

Watchers

 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

parse-sdk-arduino's Issues

ESP8266 not working

Hi, I'm trying to use Parse ina ESP8266-1 but it isn't working properly. I've tried to create, update, remove and get object from Parse but the response is always empty or doesn't work (for update, remove and create).

This is the code I'm trying on, any idea on why doesn't work?

  ParseObjectUpdate update;
  update.setClassName("Cube");
  update.setObjectId("obj-id");
  update.add("stringTest", "changing value");
  update.send();

Thanks!

esp32 parse SDK

When i am trying to compile the arduino parse SDK example for esp32 board in IDE shows:
WARNING: library Parse-SDK-Arduino-master claims to run on avr, samd, esp8266 architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from C:\Users\omer\Documents\Arduino\libraries\Parse-SDK-Arduino-master\src/internal/ParseClient.h:28:0,

         from C:\Users\omer\Documents\Arduino\libraries\Parse-SDK-Arduino-master\src/Parse.h:37,

         from C:\Users\omer\Documents\Arduino\sdk\sdk.ino:2:

set InstallationId failed

Hi,
I managed to get this working on ESP32 after several fix. I can create object, read,write.

But set new InstallationId failed. I think maybe the parse server have changed since this last updated.

So POST /1/installations not work anymore

I got this error:

16:19:15.285 -> POST /parse/1/installations HTTP/1.1
16:19:15.285 -> Host: io.agrokh.com
16:19:15.285 -> X-Parse-Client-Version: 1.0.3
16:19:15.285 -> X-Parse-Application-Id: any-random-number-of-strings
16:19:18.710 -> X-Parse-Client-Key: kjlsfkjlsfjh
16:19:18.710 -> X-Parse-Installation-Id: e9ce0a83-4a8f-7a4f-8c31-f2f986769681
16:19:18.710 -> Content-Type: application/json; charset=utf-8
16:19:18.710 -> Content-Length: 109
16:19:18.710 -> Connection: close
16:19:18.710 -> 
16:19:18.710 -> {"installationId": "e9ce0a83-4a8f-7a4f-8c31-f2f986769681", "deviceType": "embedded", "parseVersion": "1.0.0"}response:<!DOCTYPE html>
16:19:18.710 -> <html lang="en">
16:19:18.710 -> <head>
16:19:18.710 -> <meta charset="utf-8">
16:19:18.710 -> <title>Error</title>
16:19:18.710 -> </head>
16:19:18.710 -> <body>
16:19:18.710 -> <pre>Cannot POST /parse/1/in

Please make a release to get the updated category displayed in the Arduino Library Manager

Hi!
On https://create.arduino.cc/editor (the Arduino Web IDE) we include all the libraries in the Library Manager, your library is giving a warning for every single compilation, and many users have complained about it on our Forum.
WARNING: Category '' in library Parse Arduino SDK is not valid. Setting to 'Uncategorized'

This is due to the fact that you have modified the library.properties but haven't published a release yet.

We would really appreciate if you could make a release, so that the updated version will be automatically displayed in the Library Manager and the warning will disappear.

Thanks a lot!

Failure to compile

Hi all,
I am trying to use the SDK for my personal project and it fails to compile.

this is a snippet to for the error:
In file included from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseInternal.h:5, from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseObjectUpdate.cpp:22: .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h: In static member function 'static int ParseUtils::getStringFromJSON(const char*, const char*, char*, int)': .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h:51:9: warning: unused variable 'escape' [-Wunused-variable] 51 | int escape = 0; | ^~~~~~ .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h: In static member function 'static bool ParseUtils::isSanitizedString(const String&)': .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h:240:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 240 | for(k = 0; k < userData.length(); k++) { | ~~^~~~~~~~~~~~~~~~~~~ .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h:241:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 241 | for(i = 0; i < strlen(badChars); i++) { | ~~^~~~~~~~~~~~~~~~~~ In file included from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseClient.h:28, from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseObjectUpdate.cpp:23: .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseResponse.h: At global scope: .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseResponse.h:54:3: error: 'ConnectionClient' does not name a type 54 | ConnectionClient* client; | ^~~~~~~~~~~~~~~~ .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseResponse.h:71:33: error: expected ')' before '*' token 71 | ParseResponse(ConnectionClient* client); | ~ ^ | ) In file included from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseClient.h:29, from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseObjectUpdate.cpp:23: .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParsePush.h:38:29: error: expected ')' before '*' token 38 | ParsePush(ConnectionClient* pushClient); | ~ ^ | ) In file included from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseObjectUpdate.cpp:23: .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseClient.h:46:3: error: 'ConnectionClient' does not name a type 46 | ConnectionClient client; | ^~~~~~~~~~~~~~~~ .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseClient.h:47:3: error: 'ConnectionClient' does not name a type 47 | ConnectionClient pushClient; | ^~~~~~~~~~~~~~~~ .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseClient.h:51:13: error: 'ConnectionClient' has not been declared 51 | void read(ConnectionClient* client, char* buf, int len); | ^~~~~~~~~~~~~~~~ In file included from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseInternal.h:5, from .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseQuery.cpp:22: .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h: In static member function 'static int ParseUtils::getStringFromJSON(const char*, const char*, char*, int)': .pio/libdeps/nodemcuv2/Parse Arduino SDK/src/internal/ParseUtils.h:51:9: warning: unused variable 'escape' [-Wunused-variable] 51 | int escape = 0;

Any help would be greatly appreciated. Thank you!

Connect to my own parse server

Hello,

Could you manage a modification to be able to connect my arduino to my own parse server?

Thanks a lot for that, it would save my life

Certificate Pinning

The SDKs should be compatible with pinned certificates for connecting to the Parse Servers, allowing for faster, safer deployment, particularly in small or internal deployments.

ESP8266 can't connect to parse-server

I've tried to connect to my parse-server with an ESP8266 by settings:

const char* PARSE_API = "xx.xx.xx.xxx:1337/parse";
const char* PARSE_API = "xx.xx.xx.xxx:1337";
const char* PARSE_API = "xx.xx.xx.xxx:1337/parse/";
const char* PARSE_API = "http:xx.xx.xx.xxx:1337/parse";

Can you tell me what I'm doing wrong?
Thanks

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.