<commit_before># mqtt-proxy

This project aims to solve the problem of matching individual clients to specific brokers via a single public facing host/port combination.

Usage

node mqtt-proxy <port> <map>

i.e.

node mqtt-proxy 1883 map.json

Map format

Edit map.json to create an array of maps.  Example file below.
[{"username": "*",  "clientId": "*", "host": "localhost", "port": "1883"}]

Matching:
1. A simple RegEx is performed between the client supplied parameters and those in the map.
2. The corresponding host and port are used with existing connection parameters proxied.

This is a relatively green project with debugging enabled; without a set of test scripts; and with no support yet for ssl/tls certificates

Please feel free to fork and improve.

<NAME> - Directory AgSense -  Bringing I.o.T to NZ Agriculture<commit_msg>Initial alpha release<commit_after># mqtt-proxy

This project aims to solve the problem of matching individual clients to specific brokers via a single public facing host/port combination.

Usage

node mqtt-proxy &lt;port&gt; &lt;map>&gt;

i.e.

node mqtt-proxy 1883 map.json

Map format

Edit map.json to create an array of maps.  Example file below.
[{"username": "*",  "clientId": "*", "host": "localhost", "port": "1883"}]

Matching:
1. A simple RegEx is performed between the client supplied parameters and those in the map.
2. The corresponding host and port are used with existing connection parameters proxied.

This is a relatively green project with debugging enabled; without a set of test scripts; and with no support yet for ssl/tls certificates

Please feel free to fork and improve.

<NAME> - Directory AgSense -  Bringing I.o.T to NZ Agriculture
{'fraction_non_alphanumeric': 0.0770135214579659, 'fraction_numerical': 0.011757789535567314, 'mean_word_length': 4.335423197492163, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5115256', 'n_tokens_mistral': 495, 'n_tokens_neox': 470, 'n_words': 241}