-
Notifications
You must be signed in to change notification settings - Fork 4
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
ERROR: operation not allowed #1
Comments
I noticed that you have enabled the SSL certificate verification function, but I did not see that you imported the SSL certificate in the code. Is this the problem? |
@lewisxhe it can be an issue actually. MS recommends these for Azure IOT https://github.com/Azure/azure-iot-sdk-c/blob/master/certs/certs.c Is there any code sample I could use to import those? |
I have written an example, but I still encounter a little problem. You can refer to the documentation to test it first, and I will share it if I finish it. |
@lewisxhe thank you! |
@lewisxhe any luck? |
I have no luck.
|
I can’t use Azure IOT. I know whether Azure IOT can enable key authentication instead of certificate verification? |
@lewisxhe So if I understand i well to connect to Azure IOT I need to establish connection over secure port 8883 - that requires to import SSL certificate. If that's the case do you have any example out there? Assuming that SSL certificate is all good the connection gets established by specifying:
So it's down to using commands here https://cdn-shop.adafruit.com/product-files/2637/SIM800+Series_FS_Application+Note_V1.01.pdf What could help is this I guess : https://github.com/vshymanskyy/TinyGSM/blob/master/examples/more/SIM800_SslSetCert/SIM800_SslSetCert.ino Certificated needed would be this one: https://github.com/Azure/azure-iot-sdk-c/blob/master/certs/certs.c Actually I have just updated the code (untested): https://github.com/kedzior-io/esp32-sim800l-tinygsm-azure-iot-hub-mqtt-ssl/blob/master/mqtt-azure.ino#L59 Does it make sense? |
Hey guys, any updates? I am running the same issue and couldn't find a solution |
@ThamerLeme nope. |
@kedzior-io thats sad... |
Any news about the problem SIM800L and MQTTS ? Thank you :( |
Bump |
I finally changed my module sim800 to sim7000g... |
So is not possible to use a sim800l on AWS? |
@SebastienBrun yes I did the same used SIM7000G and it works with self hosted MQTT broker (Mosquitto). I haven't been able to get it working with Azure IOT though: Here I get DNS errors when using Azure IOT Free Tier (it's more than enough for my needs) Here I get issues when connected to Mosquitto: It works but it gets constant re-connects. Where you able to get it running smoothly? @NoNamedCat |
@kedzior-io For me the issue was : i connected two devices with the same username/password and client-ID. Other thing , i authorized on my mosquitto server to self define your own client-ID I thicked on stackhero.io : The code of my POC :
Let me know if it works. :) |
But this example is using SIM7000g not the sim800l. And is not using certificates (tls 1.2). I have a problem with the connection when i introduce the certificates in the secure_presentation_layer. |
This is the log that i have when i comment this lines: secure_presentation_layer.setCACert(root_ca);
secure_presentation_layer.setCertificate(client_cert_pem_start); //x509 client Certificate
secure_presentation_layer.setPrivateKey(client_key_pem_start); //x509 client key
|
And this is when i uncomment that lines:
|
@NoNamedCat |
I get this:
The text was updated successfully, but these errors were encountered: