error while using Things Speak with Cube MX

How to use the Things Speak block with custom built libraries for a specific HW. I have attached a document here describing my application in detail.

5 commentaires

Sorry no attachment seen. Can you summarize?
SIVA
SIVA le 8 Oct 2024
Project usage:
Evaluation of SW on NUCLEO H753Z1 Hardware. Intention is to send some temperature data that is filtered and some control information to cloud using Things Speak.
Process Followed:
Use Case1: Using Simulink Coder Blocks.
We have used Simulink code blocks provided in support package.
This works when we use the general blocks for sending the data. This was the evaluation that we did.
Use Case2: Self Made Block sets for other IO in the same hardware along with common configuration for board bring up but Things Speak block is same.
Here as the project progressed we used CubeMX for creating different blocksets in Simulink for GPIOs and other peripherals as per our project need. But this doesnot have the Things Speak block.
So we used the Simulink provided one which we evaluated in first step,
Problem:
When we build our application with only the blocks that we created build goes fine and code gets flashed.
But when we include the above Things Speak block and try to build it generates errors as the Things Speak.h file is not available in our library.
If we have want to use the Things Speak block with custom blocks how do we do it?
SIVA
SIVA le 8 Oct 2024
simple thing is if we have to use Things Speak and there is no block for HW ow to we make that block? or is there a process where we can use it on that HW
Vinod
Vinod le 9 Oct 2024
Modifié(e) : Vinod le 9 Oct 2024

If you're looking to make a custom Simulink Block, I'd recommend getting started here:

https://www.mathworks.com/help/rtw/code-generation-for-custom-blocks.html

SIVA
SIVA le 9 Oct 2024
I have provided feedback in below answer please check

Connectez-vous pour commenter.

Réponses (1)

Vinod
Vinod le 8 Oct 2024

0 votes

If you want to use the ThingSpeak library from your STM Nucleo board, I believe you will need to get these files in your compiler path and possibly make minor modifications so they work with the Nucleo board. Then, you should be able to compile and deploy to your board.

5 commentaires

SIVA
SIVA le 9 Oct 2024
SIVA
SIVA le 9 Oct 2024
As you see above in Embedded Coder Support package i see there is a MQTT option to publish data but the Things speak blcoke is absent.
SIVA
SIVA le 9 Oct 2024
SIVA
SIVA le 9 Oct 2024
In Simulink Coder We see the Things Speak block available for direct usage. Why is the Things Speak block not available in Embedded Coder Support package? Also there is no clear example on how to use MQTT Block.
Vinod
Vinod le 9 Oct 2024
I'd recommend opening a technical support request with MathWorks Support to deep dive the issue. Getting to the bottom of this will require more detailed analysis than we can do in a timely manner on this forum.

Connectez-vous pour commenter.

Communautés

Plus de réponses dans  ThingSpeak Community

Produits

Version

R2024a

Tags

Question posée :

le 8 Oct 2024

Commenté :

le 9 Oct 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by