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 个评论

Sorry no attachment seen. Can you summarize?
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?
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

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

I have provided feedback in below answer please check

请先登录,再进行评论。

回答(1 个)

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 个评论

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.
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.
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.

请先登录,再进行评论。

社区

更多回答在  ThingSpeak Community

产品

版本

R2024a

标签

提问:

2024-10-8

评论:

2024-10-9

Community Treasure Hunt

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

Start Hunting!

Translated by