B4R Question ESP8266 and rSD

Toley

Active Member
Licensed User
Longtime User
Is it possible to use rSD with an ESP8266 board (nodeMCU)? I've try but I did received an error containing this message "Architecture or board not supported."
 

Michael1968

Active Member
Licensed User
Longtime User
Code wich works for me:

B4X:
private Sub sdwrite
    Log("SD init")
    sd.Initialize(d1pins.D8) '4 is the CS pin when using the ethernet shield
   
    Log("OpenReadWrite: ", sd.OpenReadWrite("text.txt"))
    Dim s As String
    s = NumberFormat(temp,2,2)
    Log("wert der Temp: ",s)
    Log ("länge vom werts:",s.Length)
        sd.Stream.WriteBytes("Test:", 0, 5)
        sd.Stream.WriteBytes(s, 0, 5)
        sd.Stream.WriteBytes(Array As Byte(13,10), 0, 2)
        sd.Close
 
Upvote 0
Top