Connect Star to Cloud via Web Wizard
Connect Star to Cloud via Web Wizard
I have been unsuccessful at getting my Reef Angel Star to connect to the cloud via the web wizard.
I had an existing INO file that I had been uploading via Visual Studio Code. Copied that to the web wizard.
Ran the wizard separately to generate the hash code and then copied and pasted the comments to the bottom of my existing INO file.
Everything compiles fine and even uploads remotely as expected. However, I can't access the cloud data via UApp.
Am I unable to copy and paste the hash code comment into my existing INO for some reason? Is that the problem?
Thanks,
-Steve
I had an existing INO file that I had been uploading via Visual Studio Code. Copied that to the web wizard.
Ran the wizard separately to generate the hash code and then copied and pasted the comments to the bottom of my existing INO file.
Everything compiles fine and even uploads remotely as expected. However, I can't access the cloud data via UApp.
Am I unable to copy and paste the hash code comment into my existing INO for some reason? Is that the problem?
Thanks,
-Steve
Re: Connect Star to Cloud via Web Wizard
Correct.
You have to manually edit the file RA_CustomSettings.h
You have to manually edit the file RA_CustomSettings.h
Roberto.
Re: Connect Star to Cloud via Web Wizard
But I can't do that on the web wizard, which means no remote upload. Do I need to generate a nearly blank INO via the wizard and copy and paste my custom code between the comments?
Re: Connect Star to Cloud via Web Wizard
I misunderstood your statement.
I thought you were still trying to upload through VS.
You should be able to just copy/paste the hash.
Does the unit show you are connected to cloud on the status screen?
I thought you were still trying to upload through VS.
You should be able to just copy/paste the hash.
Does the unit show you are connected to cloud on the status screen?
Roberto.
Re: Connect Star to Cloud via Web Wizard
Shows as disconnected from the screen.
I just tried generating a minimal INO from the wizard, and it still won't connect.
Any chance there's a password length limit? My password is 20 characters long.
I just tried generating a minimal INO from the wizard, and it still won't connect.
Any chance there's a password length limit? My password is 20 characters long.
Re: Connect Star to Cloud via Web Wizard
But is it getting an ip address?
But not connecting to the cloud?
But not connecting to the cloud?
Roberto.
Re: Connect Star to Cloud via Web Wizard
Not sure what you mean by "getting an IP address." But yes, the unit is connected correctly to the network. I have opened up its port on my router and can receive updates via built-in web server from outside my network, including via the UApp. It's just the could that's not working.
Re: Connect Star to Cloud via Web Wizard
Have you ever gotten it connected before?
If you are trying on this username, you may need to update your password because the cloud server was introduced way after your profile was created and I can't de-hash your password.
By setting a new password, it updates both the forum and the cloud server hashes.
If you are trying on this username, you may need to update your password because the cloud server was introduced way after your profile was created and I can't de-hash your password.
By setting a new password, it updates both the forum and the cloud server hashes.
Roberto.
Re: Connect Star to Cloud via Web Wizard
I have never been able to connect the Star to the cloud, no. Just using the pull method via the built-in web server.
I am using a different account for the Star (sbidny0_ since I already use this account (sbidny) for my current Reef Angel Plus. Just created that new account (sbidny0).
BTW, every time I create a hash, it's different. Is that expected?
I am using a different account for the Star (sbidny0_ since I already use this account (sbidny) for my current Reef Angel Plus. Just created that new account (sbidny0).
BTW, every time I create a hash, it's different. Is that expected?
Re: Connect Star to Cloud via Web Wizard
Looking at the code, I can see the problem now.....
I have this:
https://github.com/reefangel/Libraries/ ... 0.cpp#L314
Which means, there is a limitation on the length of the password.
I have this:
Code: Select all
char username[16];
char password[16];
strcpy_P(username, CLOUD_USERNAME);
strcpy_P(password, CLOUD_PASSWORD);
Which means, there is a limitation on the length of the password.

Roberto.
Re: Connect Star to Cloud via Web Wizard
Yeah, that seems like it. Will try a shorter password and let you know. What's the max password length you allow on the site? Seems like we should update this to match. Happy to submit a pull request for this if you can't get to it.
Re: Connect Star to Cloud via Web Wizard
I don't think the site has any restrictions because the is no memory constraints on MySQL tables, but on a limited MCU, we can't be using too much.
Roberto.
Re: Connect Star to Cloud via Web Wizard
Looks like that was it. I updated my password to 15 characters (assuming a null terminator), and it has now connected as expected. Thanks, Roberto!
Re: Connect Star to Cloud via Web Wizard
BTW, is the Web Wizard code available on GitHub? Had an idea or two that I would like to look into implementing.
Re: Connect Star to Cloud via Web Wizard
I pushed it to github.
https://github.com/reefangel/WebWizard
https://github.com/reefangel/WebWizard
Roberto.