Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Wed, 14 August 2019 03:25 Go to next message
Tim Grossmann is currently offline Tim GrossmannFriend
Messages: 3
Registered: August 2019
Junior Member
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 05:38 Go to previous messageGo to next message
Simon Wegendt is currently offline Simon WegendtFriend
Messages: 1
Registered: August 2019
Junior Member
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 09:20 Go to previous message
Vitali --- is currently offline Vitali ---Friend
Messages: 1
Registered: June 2020
Junior Member
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: Sat Nov 11 06:08:25 GMT 2023

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

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

Back to the top