LineageOS 14.1 voor Galaxy Tab Pro 10.1 WiFi n2awifi.

Downloads:

https://download.lineageos.org/n2awifi

Wiki:

https://wiki.lineageos.org/devices/n2awifi/

Issues:

De 20170420 had geen WiFi in de opstart wizard.
De oplossing was om alles handmatig te doen.
Swipe gewoon de notification slab omlaag en stel je apparaat in.
Daarna via task manager de wizard weer in focus brengen en verder gaan.

Dualboot Android/LibreELEC op de NEXBOX A95X.

Stappenplan:

  1. Download `recovery.img` and `LibreELEC-S905.arm-8.0-8.0.1b.img.gz`.
  2. Copy `recovery.img` to the root of a SD card.
  3. Insert the SD card in the A95X.
  4. Reboot the A95X to factory recovery.
  5. Install `recovery.img` as `image` instead of `zip`.
  6. Remove the SD card from the A95X and insert to PC.
  7. Use the LibreELEC installer to install LibreELEC-S905.arm-8.0-8.0.1b.img.gz to the SD card.
  8. Insert the SD card in the A95X.
  9. Reboot the A95X into recovery mode.
  10. The A95X will ask which medium to boot from.
    Choose the SD card.
  11. This will install LibreELEC on SD and reboot your A95X into LibreELEC.

ESP8266 – Gebufferd binair SPIFFS lezen. #2

270 KB/s.

De int bufferSize = 1460 is cruciaal, dit is nl de TCP hw buffer size.


void fileSend(String fileName) {
  if ( !SPIFFS.begin() ) {
    Serial.println("Fatal error: no SPIFFS disk present!");
    analogWrite(redLED, PWMRANGE);     
    while (true) {}   //wait forever
  }
  File thisFile = SPIFFS.open(fileName, "r");
  if (!thisFile) {
    webClient.print("HTTP/1.1 404 Not found\r\n\r\n");
    webClient.print("ERROR 404 - '" + fileName + "' was not found.");
    return;
  }
  //check the file's extention and tailor the header for that
  String httpHeader = "HTTP/1.1 200 \r\nContent-Type: text/plain\r\n";
  
  if ( fileName.substring(  fileName.length() - 4 ) == ".css" ) {
    httpHeader = "HTTP/1.1 200 \r\nContent-Type: text/css\r\n";
  }

  if ( fileName.substring(  fileName.length() - 4 ) == ".htm" || 
       fileName.substring(  fileName.length() - 4 ) == ".php" ) {
    httpHeader = "HTTP/1.1 200 \r\nContent-Type: text/html\r\n";
  }
  
  httpHeader += "Content-Length: " + (String)thisFile.size() + "\r\n\r\n" ;
  webClient.print(httpHeader);

  int bufferSize = 1460;
  char rwBuffer[bufferSize];
  while ( thisFile.available() > bufferSize ) {
    thisFile.readBytes(rwBuffer,bufferSize);  
    webClient.write(rwBuffer, bufferSize);
  }
  //send last chunk
  bufferSize = thisFile.available();
  thisFile.readBytes(rwBuffer,bufferSize);  
  webClient.write(rwBuffer, bufferSize);
  thisFile.close();
}//done