Ajout check connexion wifi

This commit is contained in:
Nicolas SANS 2024-01-26 09:39:15 +01:00
parent 45cef130ca
commit 69db4ba2b7

View File

@ -100,6 +100,11 @@ void Program::loop() {
String nfcId = this->nfcReader->ReadNfc(); String nfcId = this->nfcReader->ReadNfc();
//si qqc //si qqc
if(nfcId != "0"){ if(nfcId != "0"){
if (lcdScreen->get_components().wifi != COMPONENT_OK) {
lcdScreen->add_log("Wifi not connected !");
lcdScreen->set_nfc_message("Cannot send wifi request !");
return;
}
//j'arrète le stepper //j'arrète le stepper
//this->grbl->stop(); //FIXME: implemente //this->grbl->stop(); //FIXME: implemente
//j'affiche le tag lue //j'affiche le tag lue