This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <WiFiUdp.h> | |
// WiFi network name and password: | |
const char * networkName = "TELLO-C569FC"; | |
const char * networkPswd = ""; | |
//IP address to send UDP data to: | |
// either use the ip address of the server or | |
// a network broadcast address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="styles.css" rel="stylesheet"> | |
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"> | |
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"> | |
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"> | |
<link rel="manifest" href="manifest.json"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void enableHTML5AppCache() { | |
webView.getSettings().setDomStorageEnabled(true); | |
// Set cache size to 8 mb by default. should be more than enough | |
webView.getSettings().setAppCacheMaxSize(1024*1024*8); | |
// This next one is crazy. It's the DEFAULT location for your app's cache | |
// But it didn't work for me without this line | |
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache"); |