stocyr / webhuesli Goto Github PK
View Code? Open in Web Editor NEWSchool project for Kernmodul BTE 5380, Embedded Systems
License: MIT License
School project for Kernmodul BTE 5380, Embedded Systems
License: MIT License
Problem: undefinierter Ablauf und Protokoll der Alarmanlage.
Problem: Wenn ich vom Server eine initialisierung für alle Elemente erhalte, rufe ich die ..._change()
funktion des jeweiligen elementes auf. Aber diese funktion beinhaltet ihrerseits eine aktualisierung des wertes zum server -> evtl. feedback. Und total unsauber.
Fix: Für die Sliders und die Maus müssen spezielle call-back funktionen eingerichtet werden, welche nur diese beiden zeilen enthalten:
..._change(); ..._send();
So dass die routine, welche die server-initialisierung entgegennimmt und die elemente initialisiert nur ..._change()
ausführen kann, ohne damit auch ein WebSocket Paket zu versenden.
Im "html_websocket.html" blibt dr Host value uf "ws://echo.websocket.org".
Ha iz pravisorisch für Testzwäck, per ssh ufm bbb z dr Standardwärt im file zu "ws://147.87.174.91:5000" gänderet.
Aso mer cha ämu scho so haub verbinde (via Bedienfeldfunktion vor Website, siehe auch #3).
Console (printf etc):
root@bbb03:~# echo $PWD'>'
/home/root>
root@bbb03:~# chmod +x /opt/webhuesli/workspace/WebhouseN00bsoft;/opt/webhuesli/ workspace/WebhouseN00bsoft;exit
INFO: initWebhouse;
initialize BBB webhouse
INFO: main;
Start of BBB webhousesocket created
socket bound to desired port
socket in listening state now
connection established
received: "GET / HTTP/1.1
Host: 147.87.174.91:5000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0
"data was sent
connection established
Bi däm Bsp. hani eifach connectet vor Website u när "test" gschickt. Komischerwis gseht er e Nachricht mit Browserinfo etc. aber z "test" nid...
Cha de evtl. MO no luege, mues iz aber ufe Zug :)
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.