Thank you for uploding the CAD, that helps a lot.
The redesign won't be a problem for me.
Best posts made by Novastorm
-
RE: Rotating magent sensor housing for 2.85mm?
-
RE: Duet Buddy - a proof of concept remote monitor
Hello,
I adopted the Code a litte for using it with M5Stack Core2 AWS.
It needs only a few changes in the Code, mostly in the Battery level check.I have changed the HTTP Communication because, when you set a password on the Duet it wont connect properly
String protocol = "http://"; String con = "/rr_connect?password="; String login_url = protocol + doc["printer_ip"].as<String>() + con + doc["printer_pass"].as<String>(); Serial.println(login_url); String query = "/rr_status?type=3"; String status_url = protocol + doc["printer_ip"].as<String>() + query; Serial.println(status_url); String dis = "/rr_disconnect"; String logout_url = protocol + doc["printer_ip"].as<String>() + dis; Serial.println(logout_url);
//Start Connecting to Duet when Wifi is connected if (wifi_connected and com == 0) { com = 1; Serial.println("Wifi Connected"); } // Connect to duet and send a Get status http request. http.useHTTP10(true); switch (com) { case 1: { http.begin(config.printer_pass); Serial.print("[HTTP] GET "); Serial.println(config.printer_pass); com = 2; } break; case 2: { http.begin(config.printer_ip); Serial.print("[HTTP] GET "); Serial.println(config.printer_ip); } break; case 3: { http.begin(config.printer_diss); Serial.print("[HTTP] GET "); Serial.println(config.printer_diss); M5.shutdown(); } break; default : { com = 0; } break; } const int httpCode = http.GET(); Serial.printf("[HTTP] GET... code: %d\n", httpCode);
Also edit the SD Card Variables
{ "wifi_ssid" : "xxx", "wifi_password" : "yyy", "printer_name" : "zzz", "printer_ip" : "xxx.xxx.xxx.xxx", "printer_pass" : "yyy", "printer_diss" : "" }
The only thing where i struggle a bit, is to Logoff corectly when Battery level is low or Poweroff is pressed.
@richardmckenna
@zapta
23. Mai 2021, 20:31Have you interest in the full code for M5stack Core2/CoreAWS, for your Github?