Skip to content

Commit

Permalink
Switch back to http on local network
Browse files Browse the repository at this point in the history
My MKR1000 cannot access my Django REST framework API using https for an
unknown reason.
- question opened on Arduino forum: https://forum.arduino.cc/t/https-to-sites-using-letsencrypt-certificates-with-mkr1000/851421
- issue opened on the Wifi101 github: arduino-libraries/WiFi101#310
  • Loading branch information
kleag committed Apr 21, 2021
1 parent 87142d8 commit d6f0fc5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions arduino/moisture_lcd/moisture_lcd.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
// Web service parmeters

// Set where you moistureduino Web service is listening
const String serverAddress = "moisture.nsupdate.info"; // server address
const int port = 443;
//const String serverAddress = "moisture.nsupdate.info"; // server address
//const int port = 443;
const String serverAddress = "192.168.1.21"; // server address
const int port = 8000;

////////////////////////////////
// Hardware parmeters
Expand Down Expand Up @@ -60,8 +62,8 @@ const String pass = SECRET_PASS; // your network password (use for WPA, or us
const String login = SECRET_LOGIN; // your Web service user login
const String password = SECRET_PASSWORD; // your Web service user password

WiFiSSLClient wifi;
// WiFiClient wifi;
//WiFiSSLClient wifi;
WiFiClient wifi;
HttpClient client = HttpClient(wifi, serverAddress, port);
const String contentType = "application/x-www-form-urlencoded";

Expand Down

0 comments on commit d6f0fc5

Please sign in to comment.