Seite 1 von 1

background task in Python 3.5 (TXT4.0)

Verfasst: 27 Dez 2021, 00:57
von vleeuwen
How to create a background task.
Python 3.5 is a little bit old.
From Python 3.7 the background task is well documented but now for Python 3.5?

I need a websocket server running in the background.
With C++ on the TXT this was also very simpel and well documented.

Re: background task in Python 3.5 (TXT4.0)

Verfasst: 31 Dez 2021, 10:34
von vleeuwen
Problem has been resolved.

Re: background task in Python 3.5 (TXT4.0)

Verfasst: 31 Dez 2021, 12:02
von Bjoern
Hi,

I´m not interested in this topic but I assume others.
And due to the fact that a lot of things seems to be not well documented for the TXT 4.0 it would be a good idea to share your knowledge with others.

Wish you a happy new year and a lot of fun with ft.

Björn

Re: background task in Python 3.5 (TXT4.0)

Verfasst: 31 Dez 2021, 12:18
von vleeuwen
Searching and studying the old Python 3.5 documentation and examples.
Dreaming about the original RoboPro with C++
And also studying the TXT4.0 example code.

RoboPro Coding with Blockly is only a simple text generator for Python code.
A nice practice could be: create with Blocklies the Python code for the TXT actuators and sensors coding, switch to the Python mode and use Python code. I am using Visual Studio with Python to developing and testing the Python code snips and copy them into the RoboPro Coding pages.

Re: background task in Python 3.5 (TXT4.0)

Verfasst: 31 Dez 2021, 14:10
von MasterOfGizmo
Blockly is nothing more than a graphical code editor. That's how it's advertised. It e.g. does not come with a runtime environment.

See
https://developers.google.com/blockly

Re: background task in Python 3.5 (TXT4.0)

Verfasst: 03 Jan 2022, 22:13
von vleeuwen
See my websocket experiment.
viewtopic.php?f=8&t=7195