STM32 drives ESP8266 to connect to Alibaba Cloud (2) ---- Connect to Alibaba IoT Studio to realize Web visualization

Publisher:HappyHeartedLatest update time:2024-05-31 Source: elecfansKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Burn MQTT firmware

Overview

Alibaba IoT Studio is an IoT development platform that can be used to quickly build cloud-based IoT applications. It provides a wealth of IoT components and tools, allowing developers to easily perform operations such as device access, data storage, and data analysis. To achieve Web visualization, you can develop through the data visualization components in IoT Studio. First, you need to connect the device to the IoT Studio platform. You can choose to use Alibaba Cloud IoT Suite, MQTT, and other methods to connect. After the connection, the data reported by the device can be received and stored by the IoT Studio platform. By connecting to the Alibaba IoT Studio platform, combined with data visualization components and Web technology, real-time monitoring and control of IoT devices can be achieved.

Link: [https://studio.iot.aliyun.com/]


Build the project

Create a new project in Project Management.

insert image description here

Select Web Application on the homepage to create a new project.

insert image description here

Enter a project name.

insert image description here

For example, a dashboard could be used to display humidity ranges.

insert image description here

After dragging it out, you need to configure the data source so that you know what data to display.

insert image description here

Select the device to be displayed and its properties.

insert image description here

Send a command to test, for example, send humidity 49.

AT+MQTTPUB=0,"/sys/a1ZCbJN0kQB/4WpGE15ik3MbGt0lEiIj/thing/event/property/post","{params:{"CurrentHumidity":49}}",0,0

You can see that the data can be displayed normally.

insert image description here

The reported temperature data is demonstrated using a real-time curve.

insert image description here

After dragging it out, you need to configure the data source to display the temperature data.
insert image description here

Select the device to be displayed and its properties.

insert image description here

Send a command to test, for example, send temperature 15.

AT+MQTTPUB=0,"/sys/a1ZCbJN0kQB/4WpGE15ik3MbGt0lEiIj/thing/event/property/post","{params:{"Temperature":15}}",0,0

You can see that the data can be displayed normally.

insert image description here


Keywords:STM32 Reference address:STM32 drives ESP8266 to connect to Alibaba Cloud (2) ---- Connect to Alibaba IoT Studio to realize Web visualization

Previous article:STM32 ILI9341 drives TFTLCD (VII) LCD draws solid triangles, rectangles, circles
Next article:Simple learning of reading and writing FLASH inside STM32G031G8U6 microcontroller

Recommended ReadingLatest update time:2024-11-16 09:23

STM32 uses TIM2_CH1 (PA15) to output 10K PWM signal
PA15- TIM2 Remap CH1 1.apb_init()     RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2,ENABLE);     RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_AFIO, ENABLE); 2.gpio_init()     #define PWM_GPIO_IDX                        8                   //PA15     #define PWM_GRP                             GPIOA  
[Microcontroller]
STM32 multiple serial ports share printf to print serial port data
(1) Problem description:  For multiple serial ports to share the printf function, most of the information found on Baidu suggests rewriting a xx_printf(format, ...). However, it is still inconvenient to use. As far as this problem is concerned, adding a judgment statement can solve it.  (2) Solution:  The printf func
[Microcontroller]
stm32: query method using pt2262/pt2272 wireless module
The working principle of pt2262/pt2272 is that after pressing the button of the remote control, a high level will be generated on the corresponding pin of the receiver. The function realized by this program is that after the remote control is pressed, the red light will light up. The query method is used to detect whe
[Microcontroller]
STM32 system interrupt processing
Click (here) to collapse or expand /******************************************************************************* * Function Name : SysTickHandler * Description : This function handles SysTick Handler. * Input : None * Output : None * Return : None ***************************************************
[Microcontroller]
STM32 system interrupt processing
STM32 development of STM32 hardware IIC operation
  STM32 has an IIC interface, which has the following main features Multi-host function: the module can be used as both a master device and a slave device Main device function C address detection Generate and detect 7-bit/10-bit addresses and general calls Support different communication speeds Status Flag
[Microcontroller]
STM32 development of STM32 hardware IIC operation
[STM32] Input capture of general timer (Example: Input capture)
General Purpose Timer Input Capture Overview How Input Capture Works In the general timer block diagram, the top part (count clock selection), the middle part (time base unit), and the lower left part (input capture) are mainly involved. Here we mainly explain the lower left part (input capture), and the other
[Microcontroller]
[STM32] Input capture of general timer (Example: Input capture)
Question about using printf function in stm32
If you want to use printf in mdk, you need to redefine the fputc function and avoid using semihosting (semihosting mode). The default output device of the standard library function is the display. To output to the serial port or LCD, you must redefine the functions related to the output device called in the standard
[Microcontroller]
STM32 RCC principle
1. Clock source In STM32, there are 5 clock sources, namely HSI, HSE, LSI, LSE, and PLL.  ①HSI is a high-speed internal clock, RC oscillator, with a frequency of 8MHz;  ②HSE is a high-speed external clock, which can be connected to a quartz/ceramic resonator or an external clock source, with a frequency range of
[Microcontroller]
STM32 RCC principle
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号