Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

token #12

Open
cayleyflyer opened this issue Dec 29, 2022 · 4 comments
Open

token #12

cayleyflyer opened this issue Dec 29, 2022 · 4 comments

Comments

@cayleyflyer
Copy link

Hello,
I am trying to connect to my new glasses DK1 using the sample code.
when I run it it, the code appears to initialise and I get confirmation in the log.e below

2022-12-29 11:00:37.977 32675-32675/com.example.githubexample E/ANDROID: Permissions
2022-12-29 11:00:37.990 32675-32675/com.example.githubexample E/SDK: Init
2022-12-29 11:00:37.991 32675-32675/com.example.githubexample E/SDK: Instance
2022-12-29 11:00:37.991 32675-32675/com.example.githubexample E/SDK: Scan
2022-12-29 11:00:38.446 32675-32675/com.example.githubexample E/DISCOVER: Glasses connecting: 80:15:05:00:06:0A
2022-12-29 11:00:41.284 32675-379/com.example.githubexample E/Volley: [34533] NetworkUtility.shouldRetryException: Unexpected response code 403 for http://vps468290.ovh.net/v1/firmwares/ALK02A/your-sdk-token-provided-by-microoled?compatibility=4&min-version=4.6.0
2022-12-29 11:00:41.287 32675-32675/com.example.githubexample W/System.err: com.android.volley.AuthFailureError
2022-12-29 11:00:41.291 32675-32675/com.example.githubexample E/ERROR: Glasses could not be connected
2022-12-29 11:00:42.156 32675-381/com.example.githubexample E/Volley: [34534] NetworkUtility.shouldRetryException: Unexpected response code 403 for http://vps468290.ovh.net/v1/firmwares/ALK01A/your-sdk-token-provided-by-microoled?compatibility=4&min-version=4.6.0

in the documentation it suggest I need a TOKEN

"_Initialization
To start using the SDK, first import and initialize the sdk. You will need a token provided by Microoled to authenticate."

any assistance would be appreciated
regards
Jeremy

@cayleyflyer
Copy link
Author

Ok read thread in the demo page reference the token not being required thanks. However still get E/ERROR: Glasses could not be connected. I will keep trying.
regards
Jeremy

@cayleyflyer
Copy link
Author

Hi,
I am struggling to implement the basic sample code in the documentation to scan, connect and print to the glasses. I am using android studio and when I run Logcat is reports that "Glasses connecting: 80:15:05:00:06:0A" but does not appear to connect and print the text in the glasses. However the glasses screen displays connection successful?.

I thought it was an authentication issue but as in the above post 'a token is not required'.

I would just like to get to a point of sending text to the glasses. The demo code works on the glasses, but I need to start on something less complicated at first.

Any guidance would be appreciated as
regards
Jeremy

@SylvainRomillon
Copy link
Contributor

Hi Jeremy,

Maybe you should start with the debug app.
Just clone the android-sdk repo and run the debug app on your Android Phone.
it's a very simple code with basic commands, connexion, deconnexion with no user interface.

I hope it will help you.
Regards,
Sylvain

@cayleyflyer
Copy link
Author

many thanks Sylvian
regards
Jeremy

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

No branches or pull requests

2 participants