@teastain thanks but unfortunatly doesn't the Tab5 exist in 2.1.4 an simpler than the below can't the sketch be made:
#include <M5Unified.h>
#include <WiFi.h>
void setup() {
auto cfg = M5.config();
M5.begin(cfg); // ← hier wird intern der C6 hochgefahren
WiFi.begin(ssid, password);
}