Hello @H-Gruber
below code works for me using M5Stack Basic or Fire (running UIFlow firmware 1.12.3):
from m5stack import * from m5ui import * from uiflow import * import module setScreenColor(0x222222) lan = module.get(module.LANBASE) label0 = M5TextBox(21, 24, "label0", lcd.FONT_Default, 0xFFFFFF, rotate=0) label1 = M5TextBox(22, 58, "label1", lcd.FONT_Default, 0xFFFFFF, rotate=0) label0.setText('Hello 1') lan.tcp_udp_config('192.168.144.1', 4711, 1, 2) label0.setText('Hello 2') label1.setText(str(lan.get_if_config())) lan.tcp_send_packet('1234') label0.setText('Hello 3') lan.socket_close() label0.setText('Hello 4')Thanks
Felix