-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to have multiple, independent scpi session? #122
Comments
It is not supported in the library itself, but you can have multiple Real implementation depends on the usage, connection types, number of sessions, dynamic memory allocation, etc. |
So I assume I have to use a scpi_t context for each session and I have to run SCPI_Init for each context? And is there a way to detect a new client connection in scpi-parser? |
It should be good start. You can share almost everything except input buffer, which you intentionally need separate for each session. You also can't share New client connection heavily depend on your communication scheme. E.g. if you are using TCP, then when you "accept" the connection, then it is the new session. I don't know if SCPI was ever meant to be used by multiple masters at the same time. There are lot of global and local states which mix together. So in general, it will produce more problems outside this library - locking resources, ... |
Thank you @j123b567 |
Is it possible to have multiple clients connected to a STM32 where each client has his own scpi session?
In my case all clients get an error message if one client sends a wrong command
The text was updated successfully, but these errors were encountered: