DevHeads IoT Integration Server

DII

DevHeads IoT Integration Server

The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.

Join

seeking-collabs

firmware-and-baremetal

middleware-and-os

edge-networking

pcb-and-analog

jobs

iot-cloud

code-review

devheads-feed

general-dev-chat

Establish a secure MQTT connection to a broker using TLS on an ESP32

@Middleware & OS Hello everyone, I have a code that I'm trying to use to establish a secure MQTT connection to a broker using TLS on an ESP32. However, I keep getting an undefined error when calling espClient.setCACert(test_root_ca). In order to fix this error, I need to generate a CA certificate using
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt
...
Solution:
@Boss lady your code looks correct to me and should run perfectly well without any issues once all required parameters are field, just in case this is what it looked like once I tried it out ```cpp #include <WiFi.h> #include <WiFiClientSecure.h> ...

interested in learning about constraint gauges

Hi @aymen ammari , I'd be interested in learning about constraint gauges and how they might be better suited for detecting millimeter-scale bends.

facing issues reading data from the SIM800 module

Good day devs, I tried integrating a SIM800 module with FreeRTOS for a small start up. I plan to use HAL_UART functions with a timeout mechanism for UART communication, but I'm concerned about later on interference with the FreeRTOS scheduler. Please and please I need guidance on implementing the timeout functionality without disrupting the scheduler. I'm facing issues reading data from the SIM800 module. But I've declared a buffer and attempted to print its contents using printf(ReadBuffer), nothing is displayed. How can I correctly read and process the received data? I don't know if I should use TCP/IP to connect the SIM800 module to a server. ```...

I'm building an IoT device with secure communication (TLS) but want to add extra security

I'm building an IoT device with secure communication (TLS) but want to add extra security with device authentication. I use tokens and TI's tm4c129encpdt, cc3100, and TI RTOS. Are there standard authentication methods to assure clients of secure communication and device identity?
Solution:
Consider these standard authentication methods: 1. Device Certificates (X.509) 2. JSON Web Tokens (JWT) 3. OAuth 2.0...

What is the max date bit rate transmission using Lora Wan ?

What is the max date bit rate transmission using Lora Wan ?
Solution:
Yes, the low data rates enable the very long range. It's also important to note that, if you follow the specification, that the data rate isn't under your control, it adapts to the RF conditions. You can force certain data rates to fit your application, but then you will have range trade-offs and may give up full interoperability with other LoRaWAN devices (which may or may not be important to you).

I want to establish communication between ESP and Raspberry Pi using MQTT

Good evening, I want to establish communication between ESP and Raspberry Pi using MQTT to take readings from the GPS and send them to each other, dividing the topics based on the distance between them. Can anyone help me with a similar project or assist me in general?...
Solution:

Troubleshooting MQTT SSL Error: Ensuring Secure Communication for Smart Home

Hey guys I decided to use MQTT for my smart home energy management application, but now I'm encountering an SSL handshake error when trying to establish a secure connection between my smart thermostat and MQTT broker. I've tried updating my thermostat's SSL certificates, but the issue persists. Should I I continue troubleshooting MQTT SSL configuration or find other approach to ensure secure and reliable communication for my smart home application? If yes which approach do you think is best? @IoT Cloud...
Solution:
1. Check the thermostat's SSL certificates. 2. Verify the MQTT broker's SSL configuration. 3. Check network connectivity and firewall settings....

I faced a challenge choosing between MQTT and CoAP!!

Hey guys while i was architecting a smart home energy management application requiring flexible communication patterns, I faced a challenge choosing between MQTT and CoAP please which protocol offers more adaptable client-server relationships and communication models to support my application's unique needs? @IoT Cloud
Solution:
I suggest using MQTT. Proper design of the MQTT Topic Structure is critical. Please check my article for the reference: https://www.thingrex.com/mqtt_topic_structure/

Utilizing GPRS (GSM) Module for Mobile Database Interaction: Module Options and Challenges

Hello, I have a mobile unit that I want to use to upload and receive data from a database like Firebase. Since Wi-Fi is not an option, I am considering using a GPRS (GSM) module, which utilizes the cellular network. Has anyone tried this approach? If so,...
Solution:
Hey check this out, this is a very good and nice option, it uses cat m and NB IOT which is faster and better than 2G protocol. https://www.waveshare.com/sim7000g-nb-iot-hat.htm...

Has anyone tried sending data using light signal (Lifi) before?

Hello electronic people, so i am trying new way of transmitting data... using light signal (Lifi) , did anyone tried this technology before...! What do u think about it... I will share the project with you all when it's works ๐Ÿ˜…

Can anyone explain how to send data using the CAN protocol step-by-step?

Can anyone help explain the step-wise procedure for sending data using the CAN protocol? I'm working on Project Where we are Calculating the Distance using Ultrasonic sensor and wanted to send the data using CAN Protocol , I'm Using Controller Board STM32F407 DISCOVERY BOARD 1 , I'm Using the CAN Module for Communication, Module : CAN transceiver SN65HVD230...
Solution:
1) You can use the APIs provided by ST for this https://controllerstech.com/can-protocol-in-stm32/ (more detailed than I could explain - so this link) 2) The data from each node is distinguished by an identifier. It can be 11 or 29 bits based on the version of CAN you use....

Has anyone ever worked with programming a Bluetooth module?

Hello have a nice weekend guys ๐Ÿ˜Œ, Has anyone ever worked with programming a Bluetooth module? I would like the Arduino to calculate the distance between the Bluetooth module it powers and a nearby phone . Thanks...
Solution:
Hi @Camila_99$$ check with Bluetooth5.1 compatible chip that allow distance and direction finding through AOA (Angle of Arrival) and AOD (Angle of Departure). I think the Nordic has some SoCs with example codes and documentation.

Do you prefer using mqtt broker services like Aws or use your own broker?

Hey team, what do you prefere using mqtt broker services like Aws for example, or used your own broker (on premises server) and what do you advise ?
Solution:
Hi, @youcef_ali IMO it depends on the scope of the project incl. resources, cost, and scale of deployment. I prefer on-premise when it's limited devices to be deployed in a factory environment where data is not allowed to be hosted with any third company. I choose AWS IoT core when possible deployment of a good number of devices, scale, and a need for a public cloud in a project. Looking forward to hearing other's opinion

How can I slow down the browser to avoid network congestion with retransmissions?

Please guys my web server (using RTOS and HTTP 1.0) closes the connection after each request. The browser keeps sending requests for ".js" files with HTTP 1.1, leading to retransmissions. My question is : 1. Is this fast transmission because the browser uses HTTP 1.1 despite the server closing the connection? 2. How can I slow down the browser to avoid network congestion with retransmissions? @Middleware & OS...
Solution:
Yes I upgraded to HTTP 1.1 which handled the retransmission issues

How to Send Data to the PC using CAN PROTOCOL ?

Hello friends, I have a Question, How to Send Data to the PC using CAN PROTOCOL ?
Solution:
You can do this through a numerous types of USB-CAN bridge available in the market like https://canable.io/ This often can be through a MCU having USB and CAN peripherals by routing it internally through programming. There is a parsing of CAN data that you have to do which may get quite complicated. Other option is to use CAN analyzer tools like the one from Vector over their CANalyzer software that porovides various options to plot/analyze/post-process the data....

How to connect the STM32H7B3I-DK board to ESP8266 WiFi module?

Hello everyone, question : I am currently working with the STM32H7B3I-DK board and I want to connect it to a WiFi module ESP8266. I am seeking assistance from someone who has experience in this field or who can provide me with a tutorial to help me accomplish this connection?
Solution:
Hi, here's AT Command driver for ESP8266 which uses UART to communicate with STM32 to provide WiFi connectivity. Please follow the readme file. If it seems too much in the beginning to incorporate drivers. Then, I'll suggest first configuring ESP8266 in AT command Mode. And then write individual AT command over UART from STM32 to host a simple webserver. I don't have any specific video on the top of my head. But heres GitHub repo https://github.com/jrmejiaa/ESP8266

is there a platform like Blynk that I can use and it is free with ESP 32?

is there a platform like Blynk that I can use and it is free with ESP 32?

How to Specify a Custom Library Path for ESP32 Communication Programs in Arduino IDE?

Good morning guys, I'm compiling a communication program between 2 ESP32s (master/slave), but the Arduino IDE always uses the local wifi.h library, and I need to use the one in the Downloads directory. How can I instruct the system to use it instead of the other? I don't want to delete it because it has its usefulness. Is there a method to choose the one from Downloads?...
Solution:
Yes, just place that library in documents folder and then into Arduino and in libraries folder, then compiler use the library's which you paste in this folder instead of present in core

can you explain to me the difference between Bluetooth Modules HC-05 AND HC-06?

Hi everyone, can someone explain me the difference between Bluetooth Modules HC-05 AND HC-06?
Solution:
Thereโ€™s an article here about it: https://www.utmel.com/components/hc-06-vs-hc-05-bluetooth-module-what-is-the-difference-between-hc-06-and-hc-05?id=889. But also @Umesh Lokhande is going to be hosting a session on Bluetooth this Sunday in Engineering Hour if you want to learn more about BT/BLE: https://discord.gg/Nx8Nbdna?event=1229438688732119050...

I was publishing sunrise &sunset time but while using in code its not working. can anyone assist me?

I am using MQTT for a small project where through openweather API and Node-red i am publishing surise time of a location which is taken as input through a form in node-red dashboard. based on this time i was trying to turn led if its night and off if its day. but i am unable extract two values from the topic. i was publishing sunrise and sunset time but while using in code its not working. can anyone assist me in this?...
Solution:
msg.payload : Object
{ sunrise: 1713645121, sunset: 1713684720 }
msg.payload : Object
{ sunrise: 1713645121, sunset: 1713684720 }
this is the sample payload i am publishing...