sahajquinci / simplwmqttbroker Goto Github PK
View Code? Open in Web Editor NEWMQTT v 3.1.1 Broker for Crestron 3-series control systems
License: MIT License
MQTT v 3.1.1 Broker for Crestron 3-series control systems
License: MIT License
During testing with MQTTBox and the Secure module, connecting using a secure tcp or wss connection succeeds. If you try to make a non secure tcp or non secure ws connection, you can no longer make a new connection to the modules tcp or wss server.
If you attempt to connect to the secure tcp server, with a non secure connection, it affects only the secure tcp server, and not the wss server. This is also true in the oposite case.
Hi,
Is it possible a have the broker + a client on the same processor?
In fact, have the broker on the Crestron and use those information on the processor.
When forcefully disconnecting a client (pull ethernet out of device) Exception is thrown
Error: splusmanagerapp.exe [App 4] # 2021-01-13 18:52:19 # Exception:Exception in customer callback function - System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at sahajquinci.MQTT_Broker.ServerBase.GetClientByIndex(UInt32 client 8. Error: splusmanagerapp.exe [App 4] # 2021-01-13 18:52:19 # Index, Boolean isWebSocketClient)
at sahajquinci.MQTT_Broker.TCPServer.DisconnectClient(UInt32 clientIndex, Boolean withDisconnectPacket)
at sahajquinci.MQTT_Broker.TCPServer.ConnectionCallback(TCPServer server, UInt32 clientIndex)
at Crestron 9. Error: splusmanagerapp.exe [App 4] # 2021-01-13 18:52:19 # .SimplSharp.CrestronSockets.TCPServer.e(IAsyncResult A_0)
at System.Net.LazyAsyncResult.InvokeCallback(Boolean asyncCompletion)
at System.Net.Sockets.Socket.WorkerThread.doWork()
at System.Net.Sockets.Socket.WorkerThread.doWorkI(Object o)
10. Error: splusmanagerapp.exe [App 4] # 2021-01-13 18:52:19 # at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()
When using the NON TLS demo on a processor, and trying to connect with MQTTLens, there is an error that gets thrown.
Steps to recreate:
Error:
5. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:31 # Exception:Exception in customer callback function - System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at sahajquinci.MQTT_Broker.ServerBase.GetClientByIndex(UInt32 client 6. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:31 # Index, Boolean isWebSocketClient)
at sahajquinci.MQTT_Broker.TCPServer.DisconnectClient(UInt32 clientIndex, Boolean withDisconnectPacket)
at sahajquinci.MQTT_Broker.TCPServer.ConnectionCallback(TCPServer server, UInt32 clientIndex)
at Crestron 7. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:31 # .SimplSharp.CrestronSockets.TCPServer.e(IAsyncResult A_0)
at System.Net.LazyAsyncResult.InvokeCallback(Boolean asyncCompletion)
at System.Net.Sockets.Socket.WorkerThread.doWork()
at System.Net.Sockets.Socket.WorkerThread.doWorkI(Object o)
8. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:31 # at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()
Trying various configurations, I ran into an issue where I can not use a MQTT client such as MQTTLens to view telemetry. When Connecting, the module throws an error: ClientConnected: Invalid client Index 0.
After this error, no other users can connect.
Processor: AV3
Firmware; 1.603.4298.28152
Using: NO TLS module
SIMPL Windows: 4.14.21
SIMPL+ 4.05.01
Path: C:\Program Files (x86)\Crestron\Simpl
INCLUDE4_2SERIES.DAT Version Information:
(2 Series) : 1.80
INCLUDE4.DAT Version Information:
(3 & 4 Series) : 2.14.131
Data Files:
Path: C:\Program Files (x86)\Crestron\Cresdb\Programming
Symlib2.Tio 1125 11/30/2020 06:11:24PM
iodev.tio 1125 11/30/2020 06:11:22PM
Other Crestron SW:
Device Database: 200.35.003.00
Crestron Database (cnctrldb22000.mdb) : 202.00.001.00
Crestron Toolbox: 3.07.323.00
SIMPL+ Cross Compiler: 1.3
Client ID: lens
HEX DUMP from Wireshark
00000000 10 12 00 06 4d 51 49 73 64 70 03 02 00 78 00 04 ....MQIs dp...x..
00000010 6c 65 6e 73 lens
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.