Open notiles opened 8 years ago
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?
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...
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.
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?
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());
}
}
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)
So we tried to update the class with datas after the creation but we have the same issue...
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
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/";
@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)?
Hi @notiles, let me find some time this weekend and test it and update it,
Thanks a lot @mtl2034 It's not urgent, but it will be easier for others users to implement custom parse server with Arduino.
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?