TXT and CivetWeb
Verfasst: 19 Dez 2019, 13:02
On the TXT is since firmware 4.4.3 a CivetWeb web server part of the firmware and present.
Nice challenge for users of the fischertechnik TXT firmware.
The last couple of weeks I have study the CivetWeb carefully and perform also a lot of tests.
It’s a nice thing that can offers a lot of feature :
CGI, Websocket, server site scripting with LUA or ECMA-script (Jscript), SQLite3.
I works as well as standalone server or as embedded part in an TXT-application.
It was not too difficult to add the source into Eclipse C/C++ TXT projects. So I am able now to compile suitable versions for my own need or develop SLI’s or standalone applications in combination with direct TA access and for example Websocket(direct, SOAP, or REST) or CGI based communication.
The actual Civetweb version on the TXT support only CGI but this version can easy be replace by a version with additional functionality.
The CGI can be create with C/C++ or Python. So the CGI can also be used in combination with FtRoboPy.
The optional SQLite engine is offering some data base functionality which could be useful to store data.
Recompiling the CivetWeb source is with Eclipse is not so difficult, you don't need to study all the code for this. The only difficulty is to fit in the CivetWeb sources in to Eclipse projects.
Although the actual document-root is under root-permissions, it is possible to change the location and work with ROBOPro-permissions only. The Civetweb can also run from the Program-C map.
Eclipse is also the cross compiler program development environment for the fischertechnik SLI’s and off-line application
For my experiments I have also a version of CivetWeb running on Windows (MS-Visual Studio 2017/2019).
The CivetWeb with Websocket is offering a lot of possibilities for controlling a TXT-application over the internet. Less overhead then with MQTT (Mosquitto MQTT) so it can be faster.
TXT application developers who are interested, are welcome to contact me privately about this subject «TXT and Civetweb».
Nice challenge for users of the fischertechnik TXT firmware.
The last couple of weeks I have study the CivetWeb carefully and perform also a lot of tests.
It’s a nice thing that can offers a lot of feature :
CGI, Websocket, server site scripting with LUA or ECMA-script (Jscript), SQLite3.
I works as well as standalone server or as embedded part in an TXT-application.
It was not too difficult to add the source into Eclipse C/C++ TXT projects. So I am able now to compile suitable versions for my own need or develop SLI’s or standalone applications in combination with direct TA access and for example Websocket(direct, SOAP, or REST) or CGI based communication.
The actual Civetweb version on the TXT support only CGI but this version can easy be replace by a version with additional functionality.
The CGI can be create with C/C++ or Python. So the CGI can also be used in combination with FtRoboPy.
The optional SQLite engine is offering some data base functionality which could be useful to store data.
Recompiling the CivetWeb source is with Eclipse is not so difficult, you don't need to study all the code for this. The only difficulty is to fit in the CivetWeb sources in to Eclipse projects.
Although the actual document-root is under root-permissions, it is possible to change the location and work with ROBOPro-permissions only. The Civetweb can also run from the Program-C map.
Eclipse is also the cross compiler program development environment for the fischertechnik SLI’s and off-line application
For my experiments I have also a version of CivetWeb running on Windows (MS-Visual Studio 2017/2019).
The CivetWeb with Websocket is offering a lot of possibilities for controlling a TXT-application over the internet. Less overhead then with MQTT (Mosquitto MQTT) so it can be faster.
TXT application developers who are interested, are welcome to contact me privately about this subject «TXT and Civetweb».