Comments (1)
Tldr: I am really new to Mqtt so I cant be certain but I think this feature seems unfinished and the timer that publishes submodels is not started currently. Release version I looked through: 2022-01-13.alpha
As said in tldr: I dont have a lot of qualifications to say something of high value here but I think I can just say what I found and think. If that is against any kind of rules here, please tell me. I will delete my comment afterwards.
If you use the option "--mqtt" in command line, aasxs will set up a mqtt broker on localhost with the standard mqtt port 1883.
In AasxServerStandardBib/Program.cs at 1792, there is code to start a mqtt client in the backround which will publish every submodel as json with topic "Submodel_" + submodel id short.
This code is in a method called OnRestTimedEvent which is added as an event listener in a method called SetRestTimer. This set-timer-method is never used and therefore, it wont publish anything. The rest of the OnRestTimedEvent method contains as the name implies stuff about updating Rest stuff for GET and POST. But I didnt look much into that as this wasnt my problem.
To get the server to publish submodels I just called SetRestTimer(2000) at 518 in AasxServerStandardBib/Program.cs. The integer is the rate in milliseconds at which the timer event fires. For now, it seems like the other unused code doesnt throw any problems but I didnt test it too much.
My plan for the future is to create a mqtt timer like the rest and opc timers with the backround worker code I mentioned earlier extracted from the current rest timer. Maybe even add an option to the command line thingy ( I dont know what it is called ), so that I can use a different broker and credentials (like --mqtt-broker and --mqtt-credentials ). But that seems to be out of my reach for now.
Again, please tell me if I did something against the rules. I will react the fastest to an email at [email protected]
I hoped my comment helped a little bit.
from server.
Related Issues (20)
- [Bug]: Same submodel IDs from different AAS HOT 2
- Mqtt login information HOT 1
- [Bug]: Can't update submodel with database support enabled although returned status is OK HOT 1
- [Bug]: Cannot update non-string properties via REST API HOT 4
- [Bug]: Updating non-string submodel properties with string values changes their value type using the REST API
- [Bug]: Using the Patch API for updating values also changes the idshort of properties
- Clarification GET /lookup/shells value for assetIds
- [Bug]: Creating a Shell via POST:/shells is not persistent HOT 1
- [Bug]: Adding Thumbnail to AssetInformation via REST Request doesn't work if Shell was created via REST API HOT 1
- [Bug]: Port already in use doesn't stop server from starting
- [Bug]: Unable to Access API Endpoints as Described in README HOT 1
- 💡 [REQUEST] - Automatically opening an AAS and a submodel within AAS in the visualization
- OPC UA Methods Implementation
- Hosting Files Created via Python & AASXPE (24_2_27) using Server Blazor 2023_09_13 not working HOT 2
- Unreadable aasx files on v3
- [Bug]: Query Parameter (IdShort and Cursor) cannot be empty HOT 2
- [Bug]: Wrong API Endpoints HOT 2
- AASX Blazor Server not able to connect to Package Explorer HOT 5
- Trouble using API with docker-compose version HOT 5
- [Bug]: AASX Server cannot interpret Serialization Modifier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.