-
Notifications
You must be signed in to change notification settings - Fork 3
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
MQTTs to AWS IoT / Use MTCAP with AWS IoT #4
Comments
The connection to the server looks good since you see the init topic. Do you have devices configured with the same AppEUI used in the Default App config? |
Thanks - Ah this is something i did not entirely understand. So i should set the "App EUI" of each device to the same used in the Default App config ? |
Are you using the Local End-Device Credentials under Key Management? If you are using Local Network Settings then the Network ID will be used in the Default App AppEUI. |
Good (probably early for you :D) morning, i've tried to set the Same "Local Network Settings" EUI, which in my case is "A000000000000102" to the "Default App" EUI. However not much changed, just getting the "init" message. Those are the other settings: Local Network Settings "Enabled" |
Did you perform a new join with your device? |
Hm. The join EUI and App EUI is the same for each device, however each device has a different one. JoinEUI |
Are all end-devices using the same key that is configured as Network Key? Do you have Keys configured for both Local Network Settings and Local End-Device Credentials? If you are using End-Device Credentials the AppEUI for each device should be set to the Default App : AppEUI, this setting does not need to match what the end-device has configured as Join EUI. Only the DevEUI is used to lookup the AppKey used to join the network. There are two paths the Join Request can follow but only one can be successful. First the network looks up the DevEUI in the end-device credentials to find an AppKey and check the Join Request. If the device was not found it will check the Join EUI against the NetworkID and use the NetworkKey to check the Join Request. It looks to me that you have both setup but the Local End-Device Credentials are being used. I this case since the Join EUI is different from each device you must use the Local End-Device credentials to Join but should change the AppEUI to assign the device to the correct application that will then forward messages through the Default App. I will be adding additional details to the documentation based on this discussion, thanks so much for your questions and feedback. |
Hi again, to exclude a device misconfiguration i tried out the default mqtt broker which uses username-password authentication and here i can see much more data, which in my understanding shows that in theory it should work. Now the question is: Does the "Default App" actually send data like this, which i received via the regular MQTT ?
|
Hi, i'm trying to figure out how to get the
MTCAP-868-001A
to send messages to AWS IoT.I have configured the "Default App" with the certificates and Hostname in the format:
mqtts://xxxxxxxxxxx-ats.iot.eu-central-1.amazonaws.com:8883
It does actually work as i can see the following message appearing on the topic. I have truncated some values just for privacy.
After this however nothing happens anymore. Am i using it wrong or what else do i need to do to get some sensor data appear on the mqtt server?
Log
After this its only message is a repeated:
Thanks for any help / hints!
Note that it would be also very helpful if the default MQTT settings would allow TLS / Certification authentication and not just username/password.
The text was updated successfully, but these errors were encountered: