particle-iot / android-app Goto Github PK
View Code? Open in Web Editor NEWSpark Android App
Home Page: https://www.spark.io/
License: Other
Spark Android App
Home Page: https://www.spark.io/
License: Other
As discussed in this thread
https://community.particle.io/t/photon-cant-connect-to-ssid-with/43446
Android app does not correctly set the WiFi credentials when containing certain characters (e.g. ampersand &
).
Setting the credentials via CLI works just fine, but when set via Android App the device just can't connect.
most
I am trying to change the app to not work with the tinker firmware, but with my own firmware, which has different functions and variables made available to the cloud. However: in the app, the whole idea that this works towards tinker, and the idea of working with pins is very hard (for me...) to separate from the clean API.
Can anyone give me a short tutorial / example on how to:
-add a button on the main screen that calls a function on my core. (I got this working, but hacked a lot to get there, not a "clean" solution.
-add a button that, when clicked, gets a variable (String in my case) from the Core and displays it. This is the hard part for me: how to configure the different Receivers etc.
mind you: this is my first android app that I am working on, so don't be to harsh... thanks
Rolf
done updates on OS on tablet and phone = app will open, sometimes. Loads cores. Set core on Tinker to read. Click read. logs out. start again. on Tablet and two phones.
same fault
I'm trying to compile the project, but it comes with this problem.
Hey @towynlin should we keep this repo around?
I noticed when I enable two factor authentication on my account that the login within the android app always fails, returning a 403. Disable 2FA and login works again.
Not expecting a fix, just noting it for others.
GIVEN:
3 fresh cores, all setup with WIFI, pulsating cyan....
EXPECTED:
I could open the tinker app view in the Android app and configure D7 pin on all 3 cores to digitalWrite, and toggle their HIGH/LOW status.
ACTUAL:
The first core's tinker app view was working as expected. I set the D7 pin to digitalWrite and was able to toggle it. The label changed from HIGH to LOW and the LED flashed accordingly. The second core's tinker app view worked the same. The third core, however, when selecting digitalWrite, I could toggle the pin to HIGH, but the label for "HIGH" was not visible and I was unable to set to LOW. When I clicked the pin, it would pulsate as if it was accepting input and I could see a blank space for the label to change, but the label would not change nor would the pin actually go to LOW.
After force closing the app and relaunching, it worked as expected on all 3 cores.
Have fun chasing this unicorn! :)
HI
Now I am interesting how Android APP config SPARK core over WIFI,I hava found when I enter SSID's password and press CONNECT button , amount of data is been sent out from my android device ,and the speed is about 512k/s,when I look for the process of data transformation, I find the data had sent to 224.0.1.187:5685, google this ip and find the IP is IANA and a multicast address .
Several questions confuse me:
1.How the APP does in order to send SSID's password?what the format of multicast information?what is the protocol?what is the detail of protocol?where is the source shows this process?can I change the IP to 224.0.1.186.. and port to 5686..?can I add other information in the multicast information,such as port's initial level?when the multicast information has been successfully sent ,what the SPARK core replies?
2.what does the SPARK core do when it received the multicast information?
where is the source?
can you answer the above question ?
Best regards
FRT
The order of Photons & Cores in the ListView seems to be quite random.
It would be good if they were alphabetic by name.
i have import the code from the master branch android app, added the smartconfiglib.jar but i am getting an error. this error is in this route:
io.spark.core.android.app > AppConfig > AppConfig > getSparkTokenCreationCredentials
the error says :
spark_token_creation_credentials cannot be resolved or is not a field
have been looking everywhere and did not find any help. this is a vanilla import of the app, i have already been able to run it before on eclipse on windows. But this time on mac i have not been able to.
I apreciate any help.
DAC tinker app slider values range only from 0 to 255 and voltage is 0 to .2 instead of 3.3. Apparently Tinker app is still treating A6 as it used to be on the Core as a PWM pin that only ranges from 0 to 255.
Once you have a bunch of cores and Photons in the App it becomes infuriating to scroll down because pull down also means refresh.
The trick is to scroll up a bit and then when you are locked onto the scroll view you can pull down.
I suggest putting a refresh button in the action bar.
Samsung Galaxy Nexus. Android 4.3
GIVEN:
3 brand new cores... all plugged into a powered USB hub... Fresh install of the Android app, freshly logged in, immediately went to WIFI Config mode, where I was able to enter the credentials. Each core started flashing green, with one going into "Rainbow Shout" mode. The app then prompted me to name the core.
EXPECTED:
I would be able to config and name all 3 spark cores and go immediately into the Tinker app for each core.
ACTUAL:
The first core saved it's name, the app moved to connecting and naming the 2nd core. After pasting text into the text box, clicking the button to save, the app crashed. I did notice, however, that the 2nd core booted and was flashing cyan, and the app (when reopened) contained the name and Tinker worked fine. The same exact thing happened to the 3rd core during setup. Asked me to name, pasted in text, clicked to save, crashed but booted and was visible when reopened.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.