python mqtt_load_test.py --broker localhost --time 10 --topic CompanyX/building1/test --threads 1000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| devices: | |
| MoveSense: | |
| name: "Movesense 223430000418" | |
| shortName: "Movesense 223430000418" | |
| address: "0C:8C:DC:41:E2:7B" | |
| services: | |
| # - uuid: "0000180d-0000-1000-8000-00805f9b34fb" | |
| # name: "Heart Rate Service" | |
| # characteristics: | |
| # - uuid: "00002a37-0000-1000-8000-00805f9b34fb" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| mqtt: | |
| image: emqx/emqx-enterprise:5.10.0 | |
| hostname: emqx | |
| ports: | |
| - 1883:1883 | |
| - 8083:8083 | |
| - 8084:8084 | |
| - 8883:8883 | |
| - 18083:18083 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "movesense_whiteboard": { | |
| "measures": [ | |
| { | |
| "SingleMeasurementParser": [ | |
| { | |
| "name": "stimestamp", | |
| "path": "Body.Timestamp", | |
| "type": "integer" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS C:\Users\antonio> & C:/oapps/Python37-32/python.exe c:/Users/antonio/Downloads/test_serial.py | |
| Starting serial statistics tracker on COM5 at 921600 baud | |
| Press Ctrl+C to stop | |
| ------------------------------------------------------------ | |
| Time | Bytes/sec | Bits/sec | Total Bytes | |
| ------------------------------------------------------------ | |
| 22:21:37.349 | 93105.35 | 744842.79 | 94160 | |
| 22:21:38.359 | 93445.46 | 747563.64 | 94346 | |
| 22:21:39.371 | 93490.70 | 747925.63 | 94642 | |
| 22:21:40.381 | 93499.38 | 747995.02 | 94465 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import logging | |
| import time | |
| from bleak import BleakScanner, BleakClient | |
| from bleak.backends.device import BLEDevice | |
| from bleak.backends.characteristic import BleakGATTCharacteristic | |
| from bleak.uuids import register_uuids |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dataModel.Battery": "https://raw.githubusercontent.com/smart-data-models/dataModel.Battery/master/context.jsonld", | |
| "dataModel.Building": "https://raw.githubusercontent.com/smart-data-models/dataModel.Building/master/context.jsonld", | |
| "dataModel.Device": "https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/context.jsonld" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import subprocess | |
| import os | |
| IS_TERMUX = os.environ.get("TERMUX_VERSION", None) | |
| import json | |
| import time | |
| from datetime import datetime | |
| from concurrent.futures import ThreadPoolExecutor |