STM8 analog iic interface debugging temperature and humidity sensor SHT3x driver

Background The project actually uses SHT3x for temperature and humidity measurement, the main control chip uses STM8S003F3P6, and uses the hardware connection of the analog IIC interface. Schematic As shown in the figure below, use STM8S003F3P6 pins PB4/PB5 for SHT3x data interface SHT3x-DIS is Sensirion’s new generation temperature and humidity sensor with accuracy of ±2%RH […]

Use go language to build blockchain Part3. Persistence and command line interface

English source address Introduction So far, we have built a blockchain with a proof-of-work system, which makes mining possible. Our implementation is getting closer to a fully functional blockchain. But it still lacks some important functionality. Today we will start storing the blockchain in a database, after which we will implement a simple command line […]

After the Dataway integrated swagger interface is updated, it cannot be updated on the swagger web side

Use version hasor-spring: 4.2.5 hasor-dataway: 4.2.5 springboot 2.5.0 swagger:springfox-boot-starter 3.0.0 Description of the problem After Dataway configures swagger, the interface document will always display the content published by the Dataway interface for the first time. After modification and re-release, it cannot be updated to the latest record. Issue Tracking The interaction between Dataway and swagger […]

Basic use of unittest automated testing framework for python interface automated testing

Directory A brief introduction to unittest unittest basic use unittest.Testcase setUp tearDown setUpClass tearDownClass test case unittest. main() Various assertion methods provided by unitteest unittest test case skip execution There are four ways to write skip execution test cases self. skipTest(reason) Points to note about skipping test cases A brief introduction to unittest unit testing […]

The pitfalls and solutions encountered in calling the Https interface

Directory The process of stepping on the pit background premise Start troubleshooting in conclusion About the interface of the Https protocol Java implements the method of calling Https interface 1. RestTemplate skips validation 2. Verification method 3. Forest framework call interface reference documents The process of stepping on the pit Background Now there is an […]

Interface Test-Postman [3. Assertion]

Table of Contents 1. Assertion 1.1 Assertion function 1.2 specific use 1.2.1 Get an environment variable【Get an environment variable】 1.2.2 Get a global variable【Get a global variable】 1.2.3 Get a variable【Get a variable: including global variables and environment variables】 1.2.4 Get a collection variable【Get a collection variable】 1.2.5 Set an environment variable【Set an environment variable】 […]

C# cad secondary development class library dialog box to add the frame interface to the class library

C# cad secondary development class library dialog box to add the frame interface to the class library using System; using System.Collections.Generic; using System. ComponentModel; using System.Data; using System. Drawing; using System. Linq; using System. Text; using System. Threading. Tasks; using System. Windows. Forms; namespace_19 dialog example { public partial class Form1 : Form { public […]

Use Springboot AOP for request interface exception monitoring

Common annotations @Aspect aspect class @Before prepended @AfterReturning after @Around Surround @AfterThrowing exception Entry point setting execution(public * *(..)) defines the execution of any public method execution(* set*(..)) defines the execution of any method starting with “set” execution(* com.sys.service.UserService.*(..)) defines the execution of any method of the UserService interface execution(* com.sys.service.*.*(..)) defines the execution of […]

In SpringBoot, enumeration classes, switch, and constant classes (declaring and initializing map) are used to implement the class strategist mode, and the interface returns constant data

Scene Strategy mode + factory mode business instance in SpringBoot (interface parameter transfer-enumeration class query strategy mapping relationship-execution of different strategies) avoids a large number of if-else: Strategy mode + factory mode business instance in SpringBoot (interface parameter transfer-enumeration class query strategy mapping relationship-execution of different strategies) to avoid a large number of if-else_Overbearing rogue […]