Code Monkey home page Code Monkey logo

simplwmqttbroker's People

Contributors

gschellhas avatar maglite4cell avatar sahajquinci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

simplwmqttbroker's Issues

Using the Secure Module, when attempting a non-secure connection, the module locks up

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.

Broker + Client

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

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 connecting with MQTTLens, program throws an error

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:

  1. Load NON TLS Demo to processor
  2. Using MQTTLens with default settings, connect to processor
  3. Look at error log.

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()

  1. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:32 # 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 10. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:32 # 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 11. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:32 # .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)
    12. Error: splusmanagerapp.exe [App 4] # 2021-01-13 06:25:32 # at System.Threading.ThreadPool.WorkItem.doWork(Object o)
    at System.Threading.Timer.ring()

When Connecting with a Client such as MQTTLens, Broker Module throws Invalid client Index 0, but no other clients can connect

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.