MQTT Mosquitto Websockets

สมมุติว่า port mqtt คือ 8883 และ websocket คือ 8083

sudo nano  /etc/mosquitto/mosquitto.conf

 

 

  GNU nano 5.4                                /etc/mosquitto/mosquitto.conf

# Place your local configuration in /etc/mosquitto/conf.d/

#

# A full description of the configuration file is at

# /usr/share/doc/mosquitto/examples/mosquitto.conf.example

per_listener_settings true

pid_file /run/mosquitto/mosquitto.pid

persistence true

persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

connection_messages true

log_timestamp true

log_timestamp_format %Y-%m-%dT%H:%M:%S

include_dir /etc/mosquitto/conf.d

#allow_anonymous false

listener 8883 0.0.0.0

protocol mqtt

allow_anonymous false

password_file /etc/mosquitto/passwordfile

listener 9001 0.0.0.0

protocol websockets

allow_anonymous false

password_file /etc/mosquitto/passwordfile

#socket_domain ipv4


passwordfile example

aaaa:bbb

encrypt file

sudo mosquitto_passwd -U passwordfile


Battery Lithium Polymer LiPo Size mm

Part Number Capacity
(mAh)
Length
(mm)
Width
(mm)
Thickness
(mm)
101532 420 32 15 10
101537 500 37 15 10
101552 700 52 15 10
101649 650 49 16 10
101752 700 52 17 10
101929 500 29 19 10
102029 520 29 20 10
102032 600 32 20 10
102034 600 34 20 10
102035 650 35 20 10
102039 700 39 20 10
102228 600 28 22 10
102231 600 31 22 10
102320 410 20 23 10
102426 520 26 24 10
102428 650 28 24 10
102430 600 30 24 10
102433 640 33 24 10
102525 600 25 25 10
102530 700 30 25 10
102626 600 26 26 10
102730 700 30 27 10
111825 450 25 18 11
111927 450 27 19 11
112229 600 29 22 11
112425 540 25 24 11
112426 670 26 24 11
112525 580 25 25 11
112527 650 27 25 11
112528 700 28 25 11
131330 480 30 13 13
131735 650 35 17 13
141330 500 30 13 14
204365 450 65 43 2
223355 420 55 33 2.2
223656 600 56 36 2.2
224747 430 47 47 2.2
233555 420 55 35 2.3
233654 500 54 36 2.3
244753 500 53 47 2.4
253058 500 58 30 2.5
253450 500 50 34 2.5
253658 450 58 36 2.5
253747 420 47 37 2.5
253959 500 59 39 2.5
263178 650 78 31 2.6
282678 600 78 26 2.8
283168 610 68 31 2.8
283256 500 56 32 2.8
284050 470 50 40 2.8
284052 700 52 40 2.8
293560 500 60 35 2.9
294347 550 47 43 2.9
300845 70 45 8 3
300936 70 36 9 3
301016 25 16 10 3
301022 45 22 10 3
301025 60 25 10 3
301028 60 28 10 3
301030 60 30 10 3
301033 80 33 10 3
301044 40 44 10 3
301045 100 45 10 3
301050 100 50 10 3
301125 60 25 11 3
301140 90 40 11 3
301215 30 15 12 3
301218 30 18 12 3
301221 40 21 12 3
301224 80 24 12 3
301225 55 25 12 3
301226 100 26 12 3
301315 30 15 13 3
301321 60 21 13 3
301323 65 23 13 3
301324 90 24 13 3
301360 180 60 13 3
301415 40 15 14 3
301418 45 18 14 3
301419 55 19 14 3
301422 75 22 14 3
301452 200 52 14 3
301515 40 15 15 3
301518 40 18 15 3
301519 55 19 15 3
301520 55 20 15 3
301522 65 22 15 3
301525 80 25 15 3
301530 95 30 15 3
301723 100 23 17 3
301728 110 28 17 3
301730 120 30 17 3
301738 170 38 17 3
301745 200 45 17 3
301820 80 20 18 3
301821 80 21 18 3
301828 110 28 18 3
301847 180 47 18 3
301848 260 48 18 3
301850 260 50 18 3
301925 95 25 19 3
302020 80 20 20 3
302022 90 22 20 3
302025 110 25 20 3
302028 140 28 20 3
302030 140 30 20 3
302035 160 35 20 3
302040 200 40 20 3
302045 220 45 20 3
302053 280 53 20 3
302228 150 28 22 3
302235 170 35 22 3
302247 260 47 22 3
302287 500 87 22 3
302287 500 87 22 3
302323 110 23 23 3
302426 190 26 24 3
302428 190 28 24 3
302430 180 30 24 3
302528 180 28 25 3
302529 180 29 25 3
302530 180 30 25 3
302535 220 35 25 3
302540 260 40 25 3
302575 460 75 25 3
302575 460 75 25 3
302628 180 28 26 3
302630 250 30 26 3
302830 210 30 28 3
302870 580 70 28 3
302870 580 70 28 3
302934 280 34 29 3
303030 210 30 30 3
303032 250 32 30 3
303035 310 35 30 3
303040 300 40 30 3
303048 400 48 30 3
303049 400 49 30 3
303079 780 79 30 3
303080 780 80 30 3
303116 95 16 31 3
303232 120 32 32 3
303321 145 21 33 3
303366 600 66 33 3
303366 600 66 33 3
303424 220 24 34 3
303442 350 42 34 3
303448 420 48 34 3
303448 420 48 34 3
303450 500 50 34 3
303450 500 50 34 3
303530 290 30 35 3
303539 450 39 35 3
303539 450 39 35 3
303540 400 40 35 3
303560 600 60 35 3
303560 600 60 35 3
303562 600 62 35 3
303562 600 62 35 3
303694 1400 94 36 3
303696 1400 96 36 3
303759 650 59 37 3
303759 650 59 37 3
303839 400 39 38 3
303840 400 40 38 3
303843 500 43 38 3
303843 500 43 38 3
303969 1000 69 39 3
304040 480 40 40 3
304040 480 40 40 3
304045 500 45 40 3
304045 500 45 40 3
304048 560 48 40 3
304048 560 48 40 3
304050 600 50 40 3
304050 600 50 40 3
304060 800 60 40 3
304064 900 64 40 3
304080 1100 80 40 3
304265 800 65 42 3
304362 800 62 43 3
304468 1000 68 44 3
304575 1100 75 45 3
305048 750 48 50 3
305055 900 55 50 3
305060 900 60 50 3
305285 1500 85 52 3
305779 2000 79 57 3
305868 1400 68 58 3
305971 1700 71 59 3
306271 1750 71 62 3
306465 1450 65 64 3
307089 2200 89 70 3
307090 2200 90 70 3
307095 2500 95 70 3
307098 2400 98 70 3
307595 2500 95 75 3
308078 2500 78 80 3
308088 2500 88 80 3
309083 3000 83 90 3
309590 3000 90 95 3
311013 23 13 10 3.1
311222 60 22 12 3.1
311436 120 36 14 3.1
311817 60 17 18 3.1
312239 230 39 22 3.1
312326 190 26 23 3.1
312539 320 39 25 3.1
313424 200 24 34 3.1
313450 460 50 34 3.1
313450 460 50 34 3.1
313743 550 43 37 3.1
313743 550 43 37 3.1
313760 900 60 37 3.1
313993 1300 93 39 3.1
314055 800 55 40 3.1
314362 900 62 43 3.1
315172 1300 72 51 3.1
315779 2000 79 57 3.1
315867 1600 67 58 3.1
315885 1900 85 58 3.1
315890 1900 90 58 3.1
316268 1700 68 62 3.1
316492 2500 92 64 3.1
317093 2000 93 70 3.1
319082 2750 82 90 3.1
319985 3100 85 99 3.1
321027 60 27 10 3.2
321119 45 19 11 3.2
321229 90 29 12 3.2
321322 70 22 13 3.2
321323 80 23 13 3.2
321324 85 24 13 3.2
321325 85 25 13 3.2
321343 140 43 13 3.2
321417 45 17 14 3.2
321445 160 45 14 3.2
321522 70 22 15 3.2
321524 70 24 15 3.2
321532 125 32 15 3.2
321650 220 50 16 3.2
321672 320 72 16 3.2
321730 100 30 17 3.2
321863 320 63 18 3.2
322022 100 22 20 3.2
322025 130 25 20 3.2
322224 160 24 22 3.2
322225 110 25 22 3.2
322238 230 38 22 3.2
322328 150 28 23 3.2
322424 200 24 24 3.2
322438 250 38 24 3.2
322544 320 44 25 3.2
322545 320 45 25 3.2
322550 340 50 25 3.2
322724 200 24 27 3.2
322730 240 30 27 3.2
322826 175 26 28 3.2
323030 200 30 30 3.2
323125 75 25 31 3.2
323240 450 40 32 3.2
323240 450 40 32 3.2
323442 400 42 34 3.2
323450 500 50 34 3.2
323450 500 50 34 3.2
323538 450 38 35 3.2
323538 450 38 35 3.2
323996 1800 96 39 3.2
324085 1200 85 40 3.2
325592 1900 92 55 3.2
325774 1600 74 57 3.2
325987 2200 87 59 3.2
325990 2000 90 59 3.2
326077 1700 77 60 3.2
326078 2000 78 60 3.2
326080 2000 80 60 3.2
326088 2250 88 60 3.2
326372 1650 72 63 3.2
326690 2000 90 66 3.2
326879 2000 79 68 3.2
327090 2400 90 70 3.2
327093 2100 93 70 3.2
327595 2800 95 75 3.2
328686 2900 86 86 3.2
330833 50 33 8 3.3
330930 70 30 9 3.3
331030 70 30 10 3.3
331217 42 17 12 3.3
331222 70 22 12 3.3
331440 160 40 14 3.3
331530 110 30 15 3.3
331614 50 14 16 3.3
332030 180 30 20 3.3
332141 270 41 21 3.3
332224 180 24 22 3.3
332238 230 38 22 3.3
332430 180 30 24 3.3
332730 220 30 27 3.3
332830 300 30 28 3.3
332832 250 32 28 3.3
333350 500 50 33 3.3
333350 500 50 33 3.3
333450 550 50 34 3.3
333450 550 50 34 3.3
333743 400 43 37 3.3
333840 520 40 38 3.3
333840 520 40 38 3.3
333891 1700 91 38 3.3
333895 1810 95 38 3.3
333993 1400 93 39 3.3
333995 1650 95 39 3.3
333996 1810 96 39 3.3
334060 950 60 40 3.3
334148 700 48 41 3.3
334148 700 48 41 3.3
334150 700 50 41 3.3
334150 700 50 41 3.3
335580 1300 80 55 3.3
336182 2000 82 61 3.3
336383 2500 83 63 3.3
336392 2200 92 63 3.3
336395 1600 95 63 3.3
336890 2500 90 68 3.3
336893 2500 93 68 3.3
336974 2000 74 69 3.3
337089 2000 89 70 3.3
337090 2400 90 70 3.3
337093 2400 93 70 3.3
337095 2600 95 70 3.3
337284 2650 84 72 3.3
337595 2500 95 75 3.3
337784 2500 84 77 3.3
338274 2650 74 82 3.3
338578 3000 78 85 3.3
338983 3000 83 89 3.3
341114 25 14 11 3.4
341117 40 17 11 3.4
341328 90 28 13 3.4
341422 90 22 14 3.4
341427 80 27 14 3.4
341752 275 52 17 3.4
341921 120 21 19 3.4
342323 130 23 23 3.4
342428 270 28 24 3.4
342430 200 30 24 3.4
342530 200 30 25 3.4
342734 310 34 27 3.4
343030 250 30 30 3.4
343031 250 31 30 3.4
343462 750 62 34 3.4
343840 500 40 38 3.4
343840 500 40 38 3.4
343993 1820 93 39 3.4
343996 1500 96 39 3.4
344243 730 43 42 3.4
344265 1000 65 42 3.4
344340 600 40 43 3.4
344340 600 40 43 3.4
345098 1900 98 50 3.4
345172 1400 72 51 3.4
345197 2000 97 51 3.4
345776 2200 76 57 3.4
345788 2000 88 57 3.4
345986 2200 86 59 3.4
346087 2310 87 60 3.4
346090 2000 90 60 3.4
346166 1850 66 61 3.4
346175 1600 75 61 3.4
346385 2000 85 63 3.4
346595 2200 95 65 3.4
346869 1900 69 68 3.4
346893 2600 93 68 3.4
346896 3000 96 68 3.4
347098 2500 98 70 3.4
347595 2600 95 75 3.4
347988 2800 88 79 3.4
347993 2900 93 79 3.4
348090 2900 90 80 3.4
349187 3200 87 91 3.4
350812 15 12 8 3.5
350826 45 26 8 3.5
350829 60 29 8 3.5
350830 60 30 8 3.5
350833 70 33 8 3.5
350835 80 35 8 3.5
350840 85 40 8 3.5
350923 55 23 9 3.5
350925 57 25 9 3.5
350926 60 26 9 3.5
350929 75 29 9 3.5
350939 90 39 9 3.5
351019 40 19 10 3.5
351024 60 24 10 3.5
351028 60 28 10 3.5
351030 70 30 10 3.5
351032 90 32 10 3.5
351038 90 38 10 3.5
351120 45 20 11 3.5
351121 40 21 11 3.5
351125 85 25 11 3.5
351133 100 33 11 3.5
351135 100 35 11 3.5
351213 35 13 12 3.5
351219 50 19 12 3.5
351220 60 20 12 3.5
351223 60 23 12 3.5
351225 80 25 12 3.5
351230 80 30 12 3.5
351315 40 15 13 3.5
351325 80 25 13 3.5
351327 90 27 13 3.5
351330 90 30 13 3.5
351420 80 20 14 3.5
351422 90 22 14 3.5
351423 80 23 14 3.5
351425 85 25 14 3.5
351438 180 38 14 3.5
351445 200 45 14 3.5
351448 170 48 14 3.5
351455 200 55 14 3.5
351520 80 20 15 3.5
351521 80 21 15 3.5
351525 100 25 15 3.5
351534 135 34 15 3.5
351560 300 60 15 3.5
351623 90 23 16 3.5
351624 100 24 16 3.5
351626 130 26 16 3.5
351650 275 50 16 3.5
351672 360 72 16 3.5
351729 130 29 17 3.5
351730 120 30 17 3.5
351735 170 35 17 3.5
351738 180 38 17 3.5
351740 180 40 17 3.5
351752 275 52 17 3.5
351824 90 24 18 3.5
351915 50 15 19 3.5
352025 130 25 20 3.5
352035 200 35 20 3.5
352044 300 44 20 3.5
352065 420 65 20 3.5
352065 420 65 20 3.5
352070 450 70 20 3.5
352070 450 70 20 3.5
352073 450 73 20 3.5
352073 450 73 20 3.5
352074 460 74 20 3.5
352074 460 74 20 3.5
352261 510 61 22 3.5
352261 510 61 22 3.5
352323 135 23 23 3.5
352522 175 22 25 3.5
352525 160 25 25 3.5
352530 200 30 25 3.5
352534 310 34 25 3.5
352535 270 35 25 3.5
352544 320 44 25 3.5
352545 350 45 25 3.5
352572 600 72 25 3.5
352572 600 72 25 3.5
352730 230 30 27 3.5
352743 430 43 27 3.5
352743 430 43 27 3.5
352745 400 45 27 3.5
352828 300 28 28 3.5
352830 270 30 28 3.5
353030 300 30 30 3.5
353035 360 35 30 3.5
353040 330 40 30 3.5
353045 480 45 30 3.5
353045 480 45 30 3.5
353048 500 48 30 3.5
353048 500 48 30 3.5
353130 320 30 31 3.5
353283 930 83 32 3.5
353338 420 38 33 3.5
353338 420 38 33 3.5
353390 1560 90 33 3.5
353442 580 42 34 3.5
353442 580 42 34 3.5
353448 550 48 34 3.5
353448 550 48 34 3.5
353450 500 50 34 3.5
353450 500 50 34 3.5
353538 550 38 35 3.5
353538 550 38 35 3.5
353540 520 40 35 3.5
353540 520 40 35 3.5
353543 500 43 35 3.5
353543 500 43 35 3.5
353562 750 62 35 3.5
353737 450 37 37 3.5
353737 450 37 37 3.5
353841 500 41 38 3.5
353841 500 41 38 3.5
353993 1960 93 39 3.5
354053 750 53 40 3.5
354196 1970 96 41 3.5
354278 1200 78 42 3.5
354355 800 55 43 3.5
354464 1100 64 44 3.5
354855 900 55 48 3.5
354880 1500 80 48 3.5
355088 1800 88 50 3.5
355250 1100 50 52 3.5
355380 2000 80 53 3.5
355572 1500 72 55 3.5
355592 2750 92 55 3.5
355597 2200 97 55 3.5
355668 1700 68 56 3.5
355670 1700 70 56 3.5
355771 1600 71 57 3.5
355870 1700 70 58 3.5
355877 2000 77 58 3.5
355878 1900 78 58 3.5
355895 2200 95 58 3.5
355975 2000 75 59 3.5
356070 2000 70 60 3.5
356075 2200 75 60 3.5
356078 2000 78 60 3.5
356088 2650 88 60 3.5
356093 2600 93 60 3.5
356095 2400 95 60 3.5
356269 2000 69 62 3.5
356392 2100 92 63 3.5
356477 2000 77 64 3.5
356484 1900 84 64 3.5
356585 2300 85 65 3.5
356590 2200 90 65 3.5
356595 1600 95 65 3.5
356683 2850 83 66 3.5
356874 1900 74 68 3.5
356895 2100 95 68 3.5
357090 2600 90 70 3.5
357092 2600 92 70 3.5
357093 2500 93 70 3.5
357095 2700 95 70 3.5
357098 2700 98 70 3.5
357099 2500 99 70 3.5
357295 2800 95 72 3.5
357595 3000 95 75 3.5
358992 3600 92 89 3.5
359095 3500 95 90 3.5
359694 3900 94 96 3.5
360820 40 20 8 3.6
360919 45 19 9 3.6
360946 180 46 9 3.6
361122 75 22 11 3.6
361150 130 50 11 3.6
361222 100 22 12 3.6
361225 70 25 12 3.6
361422 90 22 14 3.6
361720 105 20 17 3.6
362033 180 33 20 3.6
362133 230 33 21 3.6
362227 240 27 22 3.6
362630 340 30 26 3.6
362935 350 35 29 3.6
363290 1500 90 32 3.6
363291 1200 91 32 3.6
363390 1560 90 33 3.6
363391 1550 91 33 3.6
363450 500 50 34 3.6
363450 500 50 34 3.6
363491 1300 91 34 3.6
363650 700 50 36 3.6
363650 700 50 36 3.6
363783 1300 83 37 3.6
363993 1960 93 39 3.6
364197 1700 97 41 3.6
364451 880 51 44 3.6
364551 880 51 45 3.6
364880 1800 80 48 3.6
364894 1850 94 48 3.6
365157 1130 57 51 3.6
365275 1800 75 52 3.6
365290 2200 90 52 3.6
365481 1850 81 54 3.6
365667 1900 67 56 3.6
365770 2100 70 57 3.6
366090 2300 90 60 3.6
366173 1900 73 61 3.6
366376 2000 76 63 3.6
366584 2000 84 65 3.6
366685 2400 85 66 3.6
366785 2500 85 67 3.6
368286 3000 86 82 3.6
369079 3150 79 90 3.6
370730 50 30 7 3.7
370821 40 21 8 3.7
371022 55 22 10 3.7
371023 60 23 10 3.7
371030 85 30 10 3.7
371040 105 40 10 3.7
371218 60 18 12 3.7
371223 70 23 12 3.7
371229 110 29 12 3.7
371230 110 30 12 3.7
371426 100 26 14 3.7
371520 65 20 15 3.7
371538 180 38 15 3.7
372035 310 35 20 3.7
372428 290 28 24 3.7
372527 250 27 25 3.7
372528 250 28 25 3.7
372533 360 33 25 3.7
372727 280 27 27 3.7
372735 310 35 27 3.7
372835 300 35 28 3.7
372927 350 27 29 3.7
373031 300 31 30 3.7
373036 350 36 30 3.7
373045 480 45 30 3.7
373045 480 45 30 3.7
373048 580 48 30 3.7
373048 580 48 30 3.7
373258 870 58 32 3.7
373260 900 60 32 3.7
373442 480 42 34 3.7
373442 480 42 34 3.7
373540 500 40 35 3.7
373540 500 40 35 3.7
373645 550 45 36 3.7
373645 550 45 36 3.7
374036 400 36 40 3.7
374085 1400 85 40 3.7
374446 900 46 44 3.7
374448 1020 48 44 3.7
375053 1100 53 50 3.7
375056 1000 56 50 3.7
375085 1500 85 50 3.7
375981 2500 81 59 3.7
376064 1700 64 60 3.7
376798 2900 98 67 3.7
377095 2800 95 70 3.7
377297 4030 97 72 3.7
377798 2650 98 77 3.7
378481 3000 81 84 3.7
380829 58 29 8 3.8
380833 50 33 8 3.8
380920 50 20 9 3.8
380926 70 26 9 3.8
380928 58 28 9 3.8
380929 60 29 9 3.8
380930 80 30 9 3.8
381020 50 20 10 3.8
381025 72 25 10 3.8
381028 70 28 10 3.8
381029 80 29 10 3.8
381030 85 30 10 3.8
381213 35 13 12 3.8
381219 60 19 12 3.8
381223 72 23 12 3.8
381230 100 30 12 3.8
381468 340 68 14 3.8
381524 110 24 15 3.8
381525 100 25 15 3.8
381528 100 28 15 3.8
381530 110 30 15 3.8
381725 110 25 17 3.8
381921 130 21 19 3.8
381922 130 22 19 3.8
382025 150 25 20 3.8
382120 110 20 21 3.8
382128 225 28 21 3.8
382225 180 25 22 3.8
382427 250 27 24 3.8
382525 190 25 25 3.8
382530 230 30 25 3.8
382560 680 60 25 3.8
382560 680 60 25 3.8
382730 270 30 27 3.8
382746 450 46 27 3.8
382746 450 46 27 3.8
382780 850 80 27 3.8
382829 300 29 28 3.8
382844 450 44 28 3.8
382844 450 44 28 3.8
383034 300 34 30 3.8
383242 600 42 32 3.8
383242 600 42 32 3.8
383450 650 50 34 3.8
383450 650 50 34 3.8
383455 600 55 34 3.8
383455 600 55 34 3.8
383493 1200 93 34 3.8
383560 850 60 35 3.8
383562 840 62 35 3.8
384046 840 46 40 3.8
384070 1200 70 40 3.8
384278 1400 78 42 3.8
384448 1000 48 44 3.8
384473 1500 73 44 3.8
384529 590 29 45 3.8
384529 590 29 45 3.8
384693 2300 93 46 3.8
384895 2000 95 48 3.8
384984 1800 84 49 3.8
385068 1500 68 50 3.8
385085 1600 85 50 3.8
385185 1800 85 51 3.8
385390 2250 90 53 3.8
385465 1600 65 54 3.8
385565 1900 65 55 3.8
385593 2400 93 55 3.8
385868 1800 68 58 3.8
385871 1800 71 58 3.8
385880 2650 80 58 3.8
385882 2650 82 58 3.8
386086 2200 86 60 3.8
386098 3000 98 60 3.8
386272 2000 72 62 3.8
386285 2200 85 62 3.8
386479 2200 79 64 3.8
386587 2500 87 65 3.8
386795 2900 95 67 3.8
387055 1700 55 70 3.8
387078 2000 78 70 3.8
387092 2800 92 70 3.8
387295 2650 95 72 3.8
387385 1700 85 73 3.8
387490 3000 90 74 3.8
388484 3600 84 84 3.8
389573 3250 73 95 3.8
390819 35 19 8 3.9
390829 60 29 8 3.9
391114 40 14 11 3.9
391119 50 19 11 3.9
391323 90 23 13 3.9
391520 70 20 15 3.9
391522 90 22 15 3.9
391625 180 25 16 3.9
391720 60 20 17 3.9
392020 110 20 20 3.9
392121 180 21 21 3.9
392234 350 34 22 3.9
392245 450 45 22 3.9
392253 540 53 22 3.9
392253 540 53 22 3.9
392255 450 55 22 3.9
392255 450 55 22 3.9
392270 600 70 22 3.9
392270 600 70 22 3.9
392530 250 30 25 3.9
392725 230 25 27 3.9
392826 260 26 28 3.9
393027 320 27 30 3.9
393258 700 58 32 3.9
393258 700 58 32 3.9
393447 650 47 34 3.9
393447 650 47 34 3.9
393449 650 49 34 3.9
393449 650 49 34 3.9
393450 700 50 34 3.9
393450 700 50 34 3.9
393658 850 58 36 3.9
393763 1000 63 37 3.9
394594 2000 94 45 3.9
394595 2000 95 45 3.9
394796 2100 96 47 3.9
394864 1400 64 48 3.9
395081 1820 81 50 3.9
395292 2400 92 52 3.9
395365 1800 65 53 3.9
395471 1700 71 54 3.9
395495 2400 95 54 3.9
395575 2000 75 55 3.9
396067 2000 67 60 3.9
396079 2000 79 60 3.9
396169 1900 69 61 3.9
396176 2100 76 61 3.9
396281 2500 81 62 3.9
396391 2600 91 63 3.9
396585 2200 85 65 3.9
396690 3250 90 66 3.9
396852 1500 52 68 3.9
398086 3200 86 80 3.9
401574 420 74 15 4
401862 420 62 18 4
401870 550 70 18 4
402260 550 60 22 4
402550 480 50 25 4
402561 600 61 25 4
402755 700 55 27 4
402835 450 35 28 4
402860 700 60 28 4
402949 540 49 29 4
403038 600 38 30 4
403040 430 40 30 4
403048 600 48 30 4
403050 700 50 30 4
403232 420 32 32 4
403335 410 35 33 4
403442 480 42 34 4
403450 700 50 34 4
403540 500 40 35 4
403545 600 45 35 4
403648 650 48 36 4
403834 460 34 38 4
403840 600 40 38 4
403841 560 41 38 4
412263 600 63 22 4.1
412550 500 50 25 4.1
412742 520 42 27 4.1
413443 600 43 34 4.1
422079 700 79 20 4.2
423035 420 35 30 4.2
423038 480 38 30 4.2
423040 450 40 30 4.2
423043 500 43 30 4.2
431575 450 75 15 4.3
432745 530 45 27 4.3
433040 480 40 30 4.3
433048 600 48 30 4.3
433440 600 40 34 4.3
442539 480 39 25 4.4
442730 430 30 27 4.4
442839 560 39 28 4.4
443038 500 38 30 4.4
443040 480 40 30 4.4
443048 500 48 30 4.4
443440 650 40 34 4.4
444240 700 40 42 4.4
451885 700 85 18 4.5
452450 500 50 24 4.5
452540 480 40 25 4.5
452550 550 50 25 4.5
452560 700 60 25 4.5
453026 440 26 30 4.5
453038 530 38 30 4.5
453040 520 40 30 4.5
453045 500 45 30 4.5
453046 550 46 30 4.5
453244 670 44 32 4.5
453436 520 36 34 4.5
453442 650 42 34 4.5
453443 650 43 34 4.5
463438 540 38 34 4.6
463440 600 40 34 4.6
472740 475 40 27 4.7
472845 600 45 28 4.7
482059 560 59 20 4.8
482536 420 36 25 4.8
482553 600 53 25 4.8
482628 420 28 26 4.8
482933 550 33 29 4.8
482948 650 48 29 4.8
483040 520 40 30 4.8
483433 570 33 34 4.8
491869 610 69 18 4.9
492540 450 40 25 4.9
492726 415 26 27 4.9
501870 650 70 18 5
501955 500 55 19 5
502038 420 38 20 5
502045 500 45 20 5
502050 500 50 20 5
502055 510 55 20 5
502058 580 58 20 5
502060 500 60 20 5
502245 500 45 22 5
502248 500 48 22 5
502355 700 55 23 5
502443 500 43 24 5
502448 600 48 24 5
502539 500 39 25 5
502540 500 40 25 5
502652 700 52 26 5
502732 430 32 27 5
502828 500 28 28 5
502832 490 32 28 5
502837 450 37 28 5
502845 600 45 28 5
502936 550 36 29 5
503028 500 28 30 5
503030 450 30 30 5
503033 500 33 30 5
503034 500 34 30 5
503035 500 35 30 5
503038 550 38 30 5
503040 600 40 30 5
503043 600 43 30 5
503233 700 33 32 5
503338 650 38 33 5
503340 700 40 33 5
503440 700 40 34 5
503442 700 42 34 5
503528 460 28 35 5
503534 600 34 35 5
503535 600 35 35 5
503538 600 38 35 5
503635 700 35 36 5
504840 700 40 48 5
513040 600 40 30 5.1
522540 500 40 25 5.2
522826 500 26 28 5.2
522844 650 44 28 5.2
523040 650 40 30 5.2
523041 620 41 30 5.2
523436 700 36 34 5.2
523443 600 43 34 5.2
532050 500 50 20 5.3
532336 430 36 23 5.3
532337 420 37 23 5.3
532540 500 40 25 5.3
532545 600 45 25 5.3
532626 440 26 26 5.3
532727 420 27 27 5.3
532931 560 31 29 5.3
542439 500 39 24 5.4
542840 500 40 28 5.4
542931 500 31 29 5.4
544136 600 36 41 5.4
551554 420 54 15 5.5
551750 420 50 17 5.5
551965 700 65 19 5.5
552045 450 45 20 5.5
552050 470 50 20 5.5
552240 460 40 22 5.5
552249 550 49 22 5.5
552250 600 50 22 5.5
552331 430 31 23 5.5
552431 430 31 24 5.5
552447 600 47 24 5.5
552531 500 31 25 5.5
552535 450 35 25 5.5
552540 550 40 25 5.5
552548 600 48 25 5.5
552632 500 32 26 5.5
552633 500 33 26 5.5
552730 500 30 27 5.5
553030 470 30 30 5.5
553040 650 40 30 5.5
553157 700 57 31 5.5
553436 650 36 34 5.5
561563 560 63 15 5.6
561763 550 63 17 5.6
562044 450 44 20 5.6
562148 580 48 21 5.6
562248 550 48 22 5.6
562347 600 47 23 5.6
562438 500 38 24 5.6
562535 450 35 25 5.6
562737 500 37 27 5.6
563030 500 30 30 5.6
563142 700 42 31 5.6
563434 700 34 34 5.6
571560 520 60 15 5.7
572738 700 38 27 5.7
573229 700 29 32 5.7
582045 500 45 20 5.8
582148 580 48 21 5.8
582235 430 35 22 5.8
582246 500 46 22 5.8
582360 700 60 23 5.8
582446 650 46 24 5.8
582533 470 33 25 5.8
582540 560 40 25 5.8
582828 510 28 28 5.8
583029 640 29 30 5.8
583047 600 47 30 5.8
583136 650 36 31 5.8
583436 700 36 34 5.8
591944 550 44 19 5.9
592535 500 35 25 5.9
592628 460 28 26 5.9
592631 420 31 26 5.9
592930 500 30 29 5.9
593040 700 40 30 5.9
601371 500 71 13 6
601373 500 73 13 6
601452 500 52 14 6
601453 450 53 14 6
601537 500 37 15 6
601550 420 50 15 6
601647 420 47 16 6
601648 500 48 16 6
601670 600 70 16 6
601750 500 50 17 6
601752 500 52 17 6
601760 600 60 17 6
601843 430 43 18 6
601862 620 62 18 6
601955 600 55 19 6
602039 500 39 20 6
602040 450 40 20 6
602045 530 45 20 6
602046 500 46 20 6
602050 600 50 20 6
602055 650 55 20 6
602060 700 60 20 6
602136 420 36 21 6
602234 470 34 22 6
602240 500 40 22 6
602248 650 48 22 6
602250 650 50 22 6
602335 450 35 23 6
602338 450 38 23 6
602339 500 39 23 6
602342 600 42 23 6
602440 630 40 24 6
602443 500 43 24 6
602445 700 45 24 6
602447 650 47 24 6
602535 500 35 25 6
602540 600 40 25 6
602548 700 48 25 6
602629 495 29 26 6
602725 460 25 27 6
602730 520 30 27 6
602740 630 40 27 6
602828 420 28 28 6
602830 460 30 28 6
602932 700 32 29 6
603027 500 27 30 6
603030 600 30 30 6
603035 600 35 30 6
603038 680 38 30 6
603333 550 33 33 6
611663 680 63 16 6.1
612343 580 43 23 6.1
612528 500 28 25 6.1
612533 500 33 25 6.1
612932 650 32 29 6.1
613030 580 30 30 6.1
621948 550 48 19 6.2
622058 600 58 20 6.2
622530 500 30 25 6.2
622533 520 33 25 6.2
622631 550 31 26 6.2
622727 480 27 27 6.2
623030 600 30 30 6.2
623038 500 38 30 6.2
623040 600 40 30 6.2
631453 520 53 14 6.3
631646 430 46 16 6.3
631745 450 45 17 6.3
632442 700 42 24 6.3
632540 600 40 25 6.3
632543 600 43 25 6.3
632633 500 33 26 6.3
632634 550 34 26 6.3
632730 450 30 27 6.3
632830 580 30 28 6.3
633035 600 35 30 6.3
641154 420 54 11 6.4
641463 650 63 14 6.4
642046 500 46 20 6.4
642235 450 35 22 6.4
642238 600 38 22 6.4
642832 680 32 28 6.4
643030 600 30 30 6.4
651447 450 47 14 6.5
651448 450 48 14 6.5
651474 700 74 14 6.5
651660 600 60 16 6.5
651860 650 60 18 6.5
652034 530 34 20 6.5
652035 430 35 20 6.5
652039 500 39 20 6.5
652040 540 40 20 6.5
652041 590 41 20 6.5
652050 600 50 20 6.5
652143 620 43 21 6.5
652148 580 48 21 6.5
652238 500 38 22 6.5
652240 550 40 22 6.5
652334 490 34 23 6.5
652433 520 33 24 6.5
652530 500 30 25 6.5
652532 500 32 25 6.5
652533 500 33 25 6.5
652539 480 39 25 6.5
652626 480 26 26 6.5
652631 480 31 26 6.5
652633 520 33 26 6.5
652649 700 49 26 6.5
652728 480 28 27 6.5
652832 550 32 28 6.5
653029 650 29 30 6.5
653030 670 30 30 6.5
653035 700 35 30 6.5
662631 490 31 26 6.6
662740 620 40 27 6.6
663030 680 30 30 6.6
663228 650 28 32 6.6
663229 700 29 32 6.6
672045 600 45 20 6.7
672528 450 28 25 6.7
672531 550 31 25 6.7
672537 620 37 25 6.7
681454 450 54 14 6.8
681646 470 46 16 6.8
682035 480 35 20 6.8
682036 500 36 20 6.8
682045 650 45 20 6.8
682442 700 42 24 6.8
682631 500 31 26 6.8
683030 590 30 30 6.8
684045 630 45 40 6.8
692935 650 35 29 6.9
701640 420 40 16 7
701648 520 48 16 7
701740 460 40 17 7
701747 500 47 17 7
701836 420 36 18 7
702038 500 38 20 7
702039 500 39 20 7
702040 600 40 20 7
702045 650 45 20 7
702046 660 46 20 7
702236 680 36 22 7
702240 630 40 22 7
702248 700 48 22 7
702332 500 32 23 7
702334 500 34 23 7
702335 550 35 23 7
702337 600 37 23 7
702338 550 38 23 7
702383 500 83 23 7
702438 600 38 24 7
702526 450 26 25 7
702530 500 30 25 7
702533 520 33 25 7
702535 650 35 25 7
702540 600 40 25 7
702626 420 26 26 7
702930 700 30 29 7
703446 650 46 34 7
712827 485 27 28 7.1
721944 630 44 19 7.2
722338 650 38 23 7.2
722530 600 30 25 7.2
722728 450 28 27 7.2
722830 550 30 28 7.2
731254 450 54 12 7.3
731738 430 38 17 7.3
731942 500 42 19 7.3
731943 610 43 19 7.3
732035 480 35 20 7.3
732236 600 36 22 7.3
732335 550 35 23 7.3
732521 420 21 25 7.3
732530 500 30 25 7.3
732533 520 33 25 7.3
732540 700 40 25 7.3
732732 620 32 27 7.3
732922 450 22 29 7.3
741648 560 48 16 7.4
741848 650 48 18 7.4
742240 600 40 22 7.4
751540 490 40 15 7.5
751641 420 41 16 7.5
751645 450 45 16 7.5
751735 450 35 17 7.5
751738 450 38 17 7.5
751940 600 40 19 7.5
751942 570 42 19 7.5
752035 500 35 20 7.5
752040 600 40 20 7.5
752045 500 45 20 7.5
752050 700 50 20 7.5
752138 550 38 21 7.5
752327 420 27 23 7.5
752335 550 35 23 7.5
752527 450 27 25 7.5
752528 450 28 25 7.5
752535 700 35 25 7.5
752931 600 31 29 7.5
753028 550 28 30 7.5
753030 630 30 30 7.5
762030 430 30 20 7.6
762043 700 43 20 7.6
762526 450 26 25 7.6
771930 460 30 19 7.7
772435 700 35 24 7.7
781848 650 48 18 7.8
782035 550 35 20 7.8
782730 530 30 27 7.8
783030 560 30 30 7.8
791255 500 55 12 7.9
801350 500 50 13 8
801445 460 45 14 8
801460 640 60 14 8
801539 500 39 15 8
801546 500 46 15 8
801555 700 55 15 8
801637 450 37 16 8
801645 570 45 16 8
801738 520 38 17 8
801742 580 42 17 8
801744 500 44 17 8
801745 600 45 17 8
801750 500 50 17 8
801835 500 35 18 8
801837 500 37 18 8
801844 580 44 18 8
801936 500 36 19 8
802030 450 30 20 8
802033 500 33 20 8
802034 600 34 20 8
802035 520 35 20 8
802037 500 37 20 8
802040 680 40 20 8
802047 600 47 20 8
802048 600 48 20 8
802050 700 50 20 8
802231 500 31 22 8
802333 480 33 23 8
802336 650 36 23 8
802424 500 24 24 8
802525 500 25 25 8
802527 500 27 25 8
802528 550 28 25 8
802530 600 30 25 8
802535 700 35 25 8
802729 600 29 27 8
802730 600 30 27 8
802830 650 30 28 8
803030 650 30 30 8
821742 570 42 17 8.2
821745 600 45 17 8.2
822030 420 30 20 8.2
822035 600 35 20 8.2
822245 700 45 22 8.2
831550 600 50 15 8.3
832040 650 40 20 8.3
832528 500 28 25 8.3
832530 600 30 25 8.3
842528 550 28 25 8.4
842826 500 26 28 8.4
851359 600 59 13 8.5
851443 500 43 14 8.5
851735 500 35 17 8.5
851742 580 42 17 8.5
851838 500 38 18 8.5
851841 600 41 18 8.5
851842 600 42 18 8.5
852030 500 30 20 8.5
852035 600 35 20 8.5
852040 620 40 20 8.5
852425 450 25 24 8.5
852526 500 26 25 8.5
852528 550 28 25 8.5
852529 550 29 25 8.5
852626 550 26 26 8.5
852730 650 30 27 8.5
853030 700 30 30 8.5
862030 500 30 20 8.6
862528 500 28 25 8.6
882228 500 28 22 8.8
901540 450 40 15 9
901550 700 50 15 9
901638 520 38 16 9
901738 530 38 17 9
901742 630 42 17 9
901744 630 44 17 9
901837 520 37 18 9
902029 480 29 20 9
902030 500 30 20 9
902035 600 35 20 9
902039 650 39 20 9
902040 700 40 20 9
902228 500 28 22 9
902426 450 26 24 9
902430 610 30 24 9
902525 500 25 25 9
902528 500 28 25 9
902530 650 30 25 9
902730 670 30 27 9
903030 700 30 30 9
921942 600 42 19 9.2
922431 610 31 24 9.2
946687 450 87 66 9.4
951730 450 30 17 9.5
952035 650 35 20 9.5
952527 650 27 25 9.5
952728 700 28 27 9.5
961738 530 38 17 9.6
961838 550 38 18 9.6
961924 420 24 19 9.6
962030 500 30 20 9.6
982030 550 30 20 9.8
2129116 680 116 29 2.1
3032149 1400 149 32 3
3035113 1350 113 35 3
3045111 2000 111 45 3
3045135 2000 135 45 3
3046113 2080 113 46 3
3049118 2750 118 49 3
3058129 2350 129 58 3
3062110 2500 110 62 3
3063121 2800 121 63 3
3065153 4000 153 65 3
3066100 2500 100 66 3
3067156 3900 156 67 3
3068105 2650 105 68 3
3069110 2800 110 69 3
3070100 2400 100 70 3
3074165 4550 165 74 3
3075112 2800 112 75 3
3075114 2800 114 75 3
3075143 4400 143 75 3
3078130 3500 130 78 3
3082123 4000 123 82 3
3083160 4000 160 83 3
3083170 4500 170 83 3
3086142 4300 142 86 3
3090110 3000 110 90 3
3090135 4300 135 90 3
3095123 5000 123 95 3
3098100 3400 100 98 3
3145110 2100 110 45 3.1
3146110 2080 110 46 3.1
3148118 2750 118 48 3.1
3149119 2100 119 49 3.1
3160135 3000 135 60 3.1
3163136 3000 136 63 3.1
3176126 3600 126 76 3.1
3180125 3700 125 80 3.1
3242111 2200 111 42 3.2
3244103 1700 103 44 3.2
3246143 2500 143 46 3.2
3246150 2500 150 46 3.2
3248119 2700 119 48 3.2
3251120 2600 120 51 3.2
3256118 2500 118 56 3.2
3259140 3100 140 59 3.2
3260107 2900 107 60 3.2
3260109 3000 109 60 3.2
3260130 2850 130 60 3.2
3262126 3000 126 62 3.2
3263158 4200 158 63 3.2
3264138 3300 138 64 3.2
3265155 4000 155 65 3.2
3278137 4100 137 78 3.2
3280140 4300 140 80 3.2
3293105 4000 105 93 3.2
3296117 4300 117 96 3.2
3310686 3600 86 106 3.3
3338110 1600 110 38 3.3
3342112 2300 112 42 3.3
3346106 2000 106 46 3.3
3348119 2915 119 48 3.3
3349109 2700 109 49 3.3
3353148 2500 148 53 3.3
3356110 3000 110 56 3.3
3359125 2700 125 59 3.3
3364127 3500 127 64 3.3
3369140 3750 140 69 3.3
3372138 3900 138 72 3.3
3374108 2650 108 74 3.3
3374122 4000 122 74 3.3
3374123 3950 123 74 3.3
3379107 2650 107 79 3.3
3439114 1800 114 39 3.4
3442111 2350 111 42 3.4
3446134 2500 134 46 3.4
3447107 2200 107 47 3.4
3447148 3400 148 47 3.4
3449109 2100 109 49 3.4
3449118 2300 118 49 3.4
3449119 2915 119 49 3.4
3453103 2200 103 53 3.4
3455129 3000 129 55 3.4
3455131 3000 131 55 3.4
3456110 2200 110 56 3.4
3470100 2600 100 70 3.4
3475124 3750 124 75 3.4
3477108 2500 108 77 3.4
3480108 2000 108 80 3.4
3510098 4500 98 100 3.5
3542108 1900 108 42 3.5
3548118 2900 118 48 3.5
3548119 2800 119 48 3.5
3548180 4000 180 48 3.5
3549108 2900 108 49 3.5
3549109 2910 109 49 3.5
3551115 2400 115 51 3.5
3552175 4000 175 52 3.5
3553125 2700 125 53 3.5
3553140 2900 140 53 3.5
3555135 2450 135 55 3.5
3557122 3000 122 57 3.5
3558145 3500 145 58 3.5
3560108 2700 108 60 3.5
3561125 3500 125 61 3.5
3562100 2600 100 62 3.5
3564120 3000 120 64 3.5
3565100 3000 100 65 3.5
3567100 2400 100 67 3.5
3573115 3000 115 73 3.5
3574122 4000 122 74 3.5
3580116 4000 116 80 3.5
3596105 5000 105 96 3.5
3598100 3600 100 98 3.5
3645110 2100 110 45 3.6
3652103 2300 103 52 3.6
3654134 3450 134 54 3.6
3657118 3000 118 57 3.6
3657122 3000 122 57 3.6
3660104 2600 104 60 3.6
3660112 3000 112 60 3.6
3672125 4000 125 72 3.6
3677110 36000 110 77 3.6
3710398 5000 98 103 3.7
3759124 3750 124 59 3.7
3765125 2650 125 65 3.7
3765130 4000 130 65 3.7
3766125 3600 125 66 3.7
3768110 3300 110 68 3.7
3770115 3750 115 70 3.7
3774108 2500 108 74 3.7
3782110 4800 110 82 3.7
3790120 4700 120 90 3.7
3830120 1500 120 30 3.8
3846143 2900 143 46 3.8
3848143 3800 143 48 3.8
3857150 4000 150 57 3.8
3859102 2700 102 59 3.8
3860109 3000 109 60 3.8
3866130 4050 130 66 3.8
3870129 4100 129 70 3.8
3879137 5000 137 79 3.8
3925149 1500 149 25 3.9
3969100 3200 100 69 3.9
3970125 4000 125 70 3.9
3977128 4600 128 77 3.9
5565125 570 125 65 5.5
31104138 6000 138 104 3.1
32103100 5000 100 103 3.2
33102108 4500 108 102 3.3
34103100 4200 100 103 3.4

Raspberry PI Zero W install OS ,MQTT without keyboard, monitor

Setup Wifi

create wpa_supplicant.conf

country=TH
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=”your-networks-SSID”
psk=”your-networks-password”
}

save and copy to root or sd drive:\

Enable ssh

create ssh.txt

save and copy to root or sd drive:\

reset default user password (user:pi password:raspberry)

create userconf.txt

pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0

save and copy to root or sd drive:\

การ Fix ip address

sudo nano /etc/dhcpcd.conf

กรณี Wireless เพิ่มไปตรงท้ายบรรทัด

interface wlan0

static ip_address=192.168.1.10/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

กรณีเป็น LAN

interface eth0 เพิ่มไปตรงท้ายบรรทัด

static ip_address=192.168.1.10/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

การติดตั้ง MQTT MOSQUITTO

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install mosquitto mosquitto-clients

การสร้าง user แบบคนเดียว หรือหลายคน

sudo nano mosquitto_pwd.txt

aaa:aaaa*123456 // mqtt user1 password

bbb:bbb*123456 // mqtt user2 password

save แล้ว เข้ารหัส encrypt file โดยคำสั่ง

sudo mosquitto_passwd -U mosquitto_pwd.txt

การเพิ่ม password file ,config ไปยัง mosquitto

sudo nano /etc/mosquitto/mosquitto.conf

persistence true

allow_anonymous true
password_file /etc/mosquitto/mosquitto_pwd.txt

listener 1883

protocol mqtt

ตรวจสอบ service
sudo /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
หรือ
sudo service mosquitto status

หรือ ps ax | grep mosq

การสั่ง Restart Service

sudo service mosquitto restart

ดูว่า port ใช้งานได้ไหม

netstat -tlnp | grep mosq

sudo mosquitto -v

การดู view all topics

mosquitto_sub -h localhost -u user -P password -t # -d