52 lines
1.0 KiB
Markdown
52 lines
1.0 KiB
Markdown
# Notes
|
|
|
|
## Matériel
|
|
|
|
### Anémomètre
|
|
|
|
SN-3000-FSJT-N01
|
|
|
|
```
|
|
Nom : Lecteur de pare-brise en polycarbonate 485
|
|
Alimentation : 10~30V
|
|
Séquence de lignes :
|
|
Marron : alimentation positive
|
|
Noir : alimentation négative
|
|
Jaune (vert) : 485 A
|
|
Bleu : 485 B
|
|
Numéro de lot : 2502
|
|
Propriétaire : Shandong Saien Electronic Technology Co., Ltd.
|
|
Adresse : n° 1193, route Gangyuan, ville de Jinan, province du Shandong
|
|
```
|
|
|
|
## Soft
|
|
|
|
### conf mosquitto
|
|
|
|
### Génération clés SSL
|
|
|
|
```
|
|
openssl req -x509 -newkey rsa:2048 -keyout mosquitto.key -out mosquitto.crt \
|
|
-days 36500 -nodes \
|
|
-subj "/CN=pc-raymond.home"
|
|
```
|
|
|
|
NB : Clé valable 100 ans
|
|
|
|
### Génération couple user/passw
|
|
|
|
docker run -it --rm -v /tmp:/mosquitto/config eclipse-mosquitto mosquitto_passwd -c /mosquitto/config/password.txt admin
|
|
|
|
### lire topic
|
|
|
|
```
|
|
docker run -it --rm \
|
|
-v ./config:/mosquitto/config \
|
|
eclipse-mosquitto mosquitto_sub \
|
|
-h pc-raymond.home \
|
|
-p 8883 \
|
|
--cafile /mosquitto/config/ssl/mosquitto.crt \
|
|
-u <username> -P <password> \
|
|
-t rbo2 \
|
|
-v
|
|
``` |