Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Parse SDK not working on YUN mini #71

Open
notiles opened this issue Mar 2, 2016 · 12 comments
Open

Parse SDK not working on YUN mini #71

notiles opened this issue Mar 2, 2016 · 12 comments

Comments

@notiles
Copy link

notiles commented Mar 2, 2016

Hello,

I'm trying to run the Parse SDK on Arduino YUN mini. I don't have ay error but I can't saved object on server, the installation ID is not saved...

I try to update the firmware with the latest one but it doesn't fix the issue.

Any idea?

@mtl2034
Copy link
Contributor

mtl2034 commented Mar 2, 2016

Hi @notiles, we have never tested Arduino YUN mini. Unfortunately there are two flavors of Arduino:
Arduino.org and Arduino.cc. We have been working with Arduino.cc and their Arduino Studio available here: https://www.arduino.cc/en/Main/Software.

When you say it does not work did it work before? Can you provide sample of your code? Did you run the setup sketch provided with the library to install the two packages on the linux side? what was the output of the test sketch on the serial console?

@notiles
Copy link
Author

notiles commented Mar 2, 2016

Hey @mtl2034 ! Thanks for your answer. When I try to write an Object on Parse, the client return nothing, I tried with a classic Arduino YUN and it work perfectly. With the mini I don't get the ObjectID returned by the client. I'm investigating in the parse yun library but I don't find the solution yet. I could send you the ino script tomorrow.

I install the arduino yun firmware on the mini but it doesn't save my day...

@mtl2034
Copy link
Contributor

mtl2034 commented Mar 2, 2016

if cna ssh into the linux side you can run parse_request on command line and see what you get. It is easier to debug this way.

@notiles
Copy link
Author

notiles commented Mar 22, 2016

Hello @mtl2034 we are still blocked with the mini YUN, could you help me to find a way to debug easily? Our WiFi infrastructure can't allow us to connect on the YUN trough SSH. It look like the parse_request is not well run but I don't have more information, no error output... Do you have any way to get output on what's happening on linux side?

@mtl2034
Copy link
Contributor

mtl2034 commented Mar 22, 2016

Another way is to run the parse_request command directly from an Arduino sketch. Lookup this: https://www.arduino.cc/en/Reference/YunBridgeLibrary. Remember to replace/add p.addParameter("..."); with correct parameters. This will allow you to see the output from parse command.

Process p;
  p.begin("parse_request");
  p.addParameter("...");
  p.run();
  while (p.available()) {
    Serial.print((char)p.read());
  }
}

@notiles
Copy link
Author

notiles commented Mar 22, 2016

Thanks a lot we finally succeed to target the problem, when the library get the requestBody in parseClient it look like that the JSON is not well formated, (but it work on classic YUN), if we forced the requestBody to "{}" the request is well executed and the class is created without datas.

When we print requestBody in parseClient what we get is {"temperature":24,"humidity":36,"ip":true,"location":true,"country":true}
(our datas we want to save in the class)

but with those values, the request doesn't succeed (only on YUN mini)

@notiles
Copy link
Author

notiles commented Mar 22, 2016

So we tried to update the class with datas after the creation but we have the same issue...

@notiles
Copy link
Author

notiles commented Mar 22, 2016

Really weird, it works now...
So now we are investigating on the reason why it works... It make me totally crazy !

Thanks a lot for your big help @mtl2034

@notiles
Copy link
Author

notiles commented Aug 31, 2016

Hello @mtl2034

I can't install the 1.0.5 package, I succesfully install the 1.0.3 but I can't install the 1.0.5.
Could you tell me what is the good configuration in setup.ino for update the package?

Actually we have :
String revision = "1.0.3-1_ar71xx";
String location = "https://raw.githubusercontent.com/ParsePlatform/parse-embedded-sdks/1.0.3/yun/linux_package/";

Thanks a lot,

Edit :

The good setup for upgrade the package is :

String revision = "1.0.5-1_ar71xx";
String location = "https://cdn.rawgit.com/ParsePlatform/parse-embedded-sdks/master/yun/linux_package/";

@notiles
Copy link
Author

notiles commented Aug 31, 2016

@mtl2034

Could you update the setup.ino with the good parameters and is there any way to update the library that you can download with the Arduino IDE? Actually the Arduino IDE provide the 1.0.3 (sent by Parse)?

capture d ecran 2016-08-31 a 17 02 55

@mtl2034
Copy link
Contributor

mtl2034 commented Aug 31, 2016

Hi @notiles, let me find some time this weekend and test it and update it,

@notiles
Copy link
Author

notiles commented Sep 1, 2016

Thanks a lot @mtl2034 It's not urgent, but it will be easier for others users to implement custom parse server with Arduino.

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

No branches or pull requests

2 participants