Supercharge Your Innovation With Domain-Expert AI Agents!

Communication method of WeChat applet based on MQTT protocol

A communication method and small program technology, applied in the field of communication

Pending Publication Date: 2022-02-08
四川启睿克科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In view of this, the technical problem to be solved by the present invention is: to provide a communication method of WeChat applet based on MQTT protocol, to solve the technical problem that communication switching between multiple TVs can be realized when the mobile phone WeChat applet communicates with the TV

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method of WeChat applet based on MQTT protocol
  • Communication method of WeChat applet based on MQTT protocol
  • Communication method of WeChat applet based on MQTT protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] Some embodiments of the present invention disclose a communication method of a WeChat applet based on the MQTT protocol, comprising the following steps:

[0024] Step 1: The mobile WeChat applet applies for the MQTT server ip as the whitelist ip, and communicates with the MQTT server based on the MQTT protocol;

[0025] Step 2: Associate the TV app to set the MQTT server ip, and use the MQTT server ip to communicate with the MQTT server;

[0026] Step 3: The mobile phone WeChat applet finds the mac address of the associated TV through the network, and sets the mac address of a TV to be controlled by the associated TV as the first subscription topic;

[0027] Step 4: each TV app of the associated TV app obtains the mac address of the TV set, and sets the mac address of the TV set as the second subscription topic;

[0028] Step 5: The WeChat applet on the mobile phone publishes and controls a certain TV message to the MQTT server;

[0029] Step 6: After the MQTT server ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a communication method of a WeChat applet based on an MQTT protocol. A mobile phone WeChat applet, an MQTT server and an associated television APP are included, and the mobile phone WeChat applet and an associated television communicate with the MQTT server based on the MQTT protocol. The mobile phone WeChat applet finds an associated television through a network, and sets a certain television mac address needing to be controlled as a first subscription theme; each television app of the associated television obtains the mac address of the television and sets the mac address of the television as a second subscription theme; the mobile phone WeChat applet issues and controls a certain television message to the MQTT server; after the MQTT server receives the message for issuing and controlling the certain television, the message is forwarded to the certain television; and after receiving the published television control message, the certain television app operates according to the television control message. According to the invention, the mobile phone WeChat applet communicates with the MQTT server based on the MQTT protocol, so that the mobile phone WeChat applet can realize a communication switching function among a plurality of televisions when communicating with the televisions.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a communication method of a WeChat applet based on the MQTT protocol. Background technique [0002] In the existing mainstream technology, the mobile phone and the TV are mainly based on the webSocket protocol to realize communication. Specifically, the mobile phone finds and obtains the IP of the TV through the network, and establishes a connection to realize communication; the mobile phone can be used as a remote control to control the TV, or can Push a small video to the TV for screencasting. However, when the mobile phone uses the WeChat applet to communicate with the TV, the mobile phone needs to be bound to a specific TV ip, because different TV ips are not the same, so the mobile phone can only communicate with the specific TV, but not in multiple Realize communication switch between two TVs. Contents of the invention [0003] The present invention aims to solve...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04N21/4363H04N21/422H04M1/72415
CPCH04N21/43637H04N21/4222H04M1/72415
Inventor 李世绍杨震泉
Owner 四川启睿克科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More