Wechat applet connects to EMQX server
Recently, I was working on the project of connecting wechat applet to the Internet of things. However, the online data always did not match the demand. I finally succeeded in continuous experiments. I will make a brief record here.
Effect display
EMQX server configuration
Replace the host address with the server domain name. If there is no IC ...
Posted by cornercuttinjoe on Wed, 24 Nov 2021 13:37:58 -0800
Ways and skills of small programs nesting H5
The article continues above, Ways and skills of small programs nesting H5 (1)
4, Refresh the embedded H5 page of WEV view
1) Why should we refresh the embedded H5 page of WEV view?
Many business scenarios require developers to update the page data every time they open the page. It is relatively simple ...
Posted by synical21 on Tue, 23 Nov 2021 03:08:09 -0800
Why has Tetris, a Pygame game, been popular for 30 years? (best selling stand-alone game in History)
preface
Tetris has been popular for 30 years and has become the best-selling stand-alone game in history.
Why is it so magical and enduring?
Xiaobian summarized some reasons: it is very simple to start, but there are many skills to meet the desire to create order in chaos
Engineer Alexei says people don't realize that simplicity does ...
Posted by GregL83 on Mon, 22 Nov 2021 05:57:28 -0800
Introduction to applet Progress component
Introduction to applet Progress component
Official documents
progress bar. The length unit of component attribute is px by default, 2.4.0 Incoming units (rpx/px) are supported.
attribute
All visible components of the applet can bind the tap event bindmap, even if it is not indicated in the attribute.
If the Boolean attribute in th ...
Posted by IronCannibal on Wed, 17 Nov 2021 05:34:24 -0800
Power system power flow (realized by Matlab)
catalogue
1. Overview
2. Main tasks
3. Main content
4. PowerWorld simulation
(1) Normal operation
(2) Load increase
(3) Increase of generator output
5. MATLAB programming example
(1) Flow chart of power flow calculation program
(2) Program code of power flow calculation
6. Data acquisition (Baidu online disk)
1 ...
Posted by Pantho on Wed, 17 Nov 2021 00:58:12 -0800
C + + data or file compression and decompression reduction program based on ZLIB compression library
Project display
Project development
Compilation settings
1. Compilation settings in debug / release compilation mode
First, open the property page of the project, and then select SDK and platform toolset as your current SDK and platform toolset.
For example, I am SDK 10 platform toolset v141.
Then, expand "C/C + +", cl ...
Posted by DevilsAdvocate on Thu, 11 Nov 2021 09:56:12 -0800
Template syntax of wechat applet
Template syntax
Data binding
<!-- 1. character string -->
<view>{{ msg }}</view>
<!-- 2. number -->
<view>{{ num }}</view>
<!-- 3. boolear -->
<view>Has the goal been achieved?{{flag}}</view>
<!-- 4. Object -->
<view>{{per.name}}</view>
<view>{{per.age}}</v ...
Posted by yacaph on Sun, 07 Nov 2021 15:35:33 -0800
Small program shopping mall project practice (Part 2)
Tips
(Part 2) undertake (Part 1). The interface document and Ali icon library have been given in (Part 1). The code pasted in this article may be incomplete. See (Part 2) for the complete code.
Dynamic rendering of product details rotation chart
First, write the structure of the rotation chart in goods_ Modify the code in index.wxml unde ...
Posted by Kalland on Fri, 22 Oct 2021 06:58:02 -0700
Transform index list with virtual list
introduction
In a team that advocates "rapid development", the delivery date is often the first standard to measure the work. The way to solve problems will also be partial to violence. The way of violence often disgusts and loses voice. Especially when the interviewer asks about the difficulties in the development process, he can't ...
Posted by n8r0x on Mon, 18 Oct 2021 13:38:04 -0700
API for wechat development
Basics
wx.env: environment variable, directory path in file system (local path)wx.canIUse(string schema): judge whether the API, callback, parameters, components, etc. of the applet are available in the current version
Parameters: call using ${API}. ${method}. ${parameter}. ${option} or ${component}.${attribute}.${option}${API} represents API ...
Posted by timmy2 on Wed, 13 Oct 2021 16:35:07 -0700