Skip to main content



      Home
Home » Eclipse Projects » Mita » Example of Configuration reading from SD card(Is there any example on how to read data from an SD card?)
Example of Configuration reading from SD card [message #1810589] Tue, 13 August 2019 23:25 Go to next message
Eclipse UserFriend
Is there any example on how to read data from a file on an SD card?

Looking at the docs, there is no example given which would be very helpful.
Are there any examples of Mita files online?

The current code I have looks like this:
setup sd : SDCard {
	var reader : string = resumingTextRead("setup.conf", 512);
}

every 5 seconds {
    let value : string = sd.reader.read();
    println(value);
}


In the end I want to read out a config file on an SD card and populate the WIFI credentials and MQTT credentials with.

Is that possible?

Thank you
Re: Example of Configuration reading from SD card [message #1811280 is a reply to message #1810589] Fri, 30 August 2019 01:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

configuring the XDKs WLAN from SD-Card is not currently possible with Mita.

Best Regards,
Simon.
Re: Example of Configuration reading from SD card [message #1829108 is a reply to message #1810589] Thu, 25 June 2020 05:20 Go to previous message
Eclipse UserFriend
Hello,

is there maybe now a possibility to read Configuration from SD-Card with mita?
For example
HonoMqtt, Wifi, etc.

Best regards,
Vitali
Previous Topic:Heap Issue when using EclipseMitaApplication with XDK
Goto Forum:
  


Current Time: Sun May 18 07:46:29 EDT 2025

Powered by FUDForum. Page generated in 0.03505 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top