Discussions
Invalid Token error
Hello,
I'm trying to use the API to get some User records from Ayla. I am able to Sign In and generate a Token but when I try to run a GET on the User Service, no matter what endpoint I use, I always get the same error:
"401 Unauthorized".
Example:
GET URL: <https://user.aylanetworks.com/users/d8ec2ce6-272e-11ee-9c50-ead5950d72be.json>
Headers:
Accept: application/json
Authorization: **********\*\***********
Response: 401 Unauthroized
Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token is invalid"
Posted by Hector Garza about 1 year ago
APIs Authentication
I am trying to use the API to authenticate with Ayla. I have an OEM Admin account and have created and app and I got the App ID and App Secrete from the dashboard. When I use the API to authenticate, I get an error saying
"error": "Could not find application"
POST URL:
<https://user-dev.aylanetworks.com/users/sign_in.json>
JSON body:
{
"user": {
"email": "[[email protected]](mailto:[email protected])",
"password": "**\*\***",
"application": {
"app_id": "**_",
"app_secret": "_**"
}
}
}
Posted by Hector Garza about 1 year ago
Successfully created OEM user but unable to log in
I followed <https://docs.aylanetworks.com/docs/users> I created an OEM user for my colleague, but still couldn't log in. The error message is as follows:
**Invalid email or password**
May I ask if I have missed any steps?
Posted by yibo jiang about 1 year ago
Run ayla_demo on ESP32 failed
I followed the official steps(<https://docs.aylanetworks.com/docs/integrated-agent-v30>), but always reported the following error:
![](https://files.readme.io/166d73e-image.png)
Ps: I am in the CN field environment.
Posted by yibo jiang about 1 year ago
clien_log for LOG_INFO not printing out log message:
Hi
In components/ayla/adaclient.c, I am trying to print some debug information in log.
The function following statement is not printing any thing. However similar original function statement preceding this statement perfectly prints its log message. Why additional below additional log message is not getting printed to the log ?
client_info(LOG_INFO "log message %s %d",string_buffer, int_variable);
File:
components/ayla/adaclient.c
void client_clock_set(u32 new_time, enum clock_src src)
{
........
client_log(LOG_INFO "clock now %s UTC", buf); //NOTE: This original statement prints log message.
//NOTE: Above original function statement is modified below by adding additional variable src to be printed.
client_log(LOG_INFO "clock now %s UTC clock-source= %d", buf, src);
Issue: Modified statement continues to print same message from original statement above and does not show modified message.
Question: Above such minor modification in the file client.c is not taking effect ?
Posted by Sajid Ali Syed over 1 year ago
Procedure after mobile discovers BLE devices
What’s the procedure after mobile discovers BLE devices? Should we follow the Wi-Fi procedure to register the device?
Posted by Thirumala Venkatesh C over 1 year ago
Mobile lib - scenarios that cause device location change/update
In mobile lib, what scenario will cause device location change/update? What API is related to this?
Posted by Thirumala Venkatesh C over 1 year ago
Android LAN mode pause/resume calls
Are Android LAN mode pause/resume calls needed?
Posted by Thirumala Venkatesh C over 1 year ago
Aura Mobile Application
What is Aura Mobile Application?
Posted by Thirumala Venkatesh C over 1 year ago
What are AppID and AppSecret?
What are AppID and AppSecret?
Posted by Thirumala Venkatesh C over 1 year ago