These are chat archives for SmingHub/Sming

12th
Jan 2018
frankdownunder
@frankdownunder
Jan 12 2018 05:15
Ok, my SMTP code works now. I simply changed sendString to writeString. (asynch to synchronous). Here is an easier question - should I turn it into a sample for inclusion with all the others?
slaff
@slaff
Jan 12 2018 13:30
@frankdownunder Turn your SMTP code into a proper SmtpClient class and create a PR that adds it to Sming + has an example usage. We will review it and hopefully add it.

May I resurrect the discussion from about a year ago regarding using rBoot as the default (and only) 2nd stage boot loader for Sming?

@riban-bw Well, actually we do not have any longer any other 2nd stage bootloader. rBoot is the one and only.

The Makefile-project is for projects WITHOUT a second stage bootloader. For users who do not need a bootloader and would like to use every single free byte of FLASH data.
riban-bw
@riban-bw
Jan 12 2018 13:50
@slaff I remember that was an aspiration so good that we got there but we still have 2 Makefiles which can diverge so there is an unnecessary overhead of keeping them both updated as well as the library Makefile which shares many elements. I suggest we try to consolidate project and reboot Makefiles and abstract common elements of this and library Makefile into an included Makefile.
HappyCodingRobot
@HappyCodingRobot
Jan 12 2018 14:03
What is a good way to make an config AP? Unlike the HTTPServer_ConfigNetwork example, i'm going to use the SDK functions and not the file/spiffs way. How do i clear the credentials and how many different networks are stored?
Alexander V. Ribchansky
@avr39-ripe
Jan 12 2018 14:18
@HappyCodingRobot I try to use SDK cache capability to store several AP settings, but whole this stuff works very unreliable.. it can cache 4 networks AFAIK.. I think file/spiffs way is way to go...
moreover you can reliable store ONE AP setting in non spiffs/files maner... just use appropriate Sming functions to config Station or AP ant true as last argument to save settings in SDK flash area..
HappyCodingRobot
@HappyCodingRobot
Jan 12 2018 14:26
@avr39-ripe thanks for your quick answer ..
what do you mean with 'very unreliable'?
How do i clear the stored networks? (except from writing directly to the flash)
Alexander V. Ribchansky
@avr39-ripe
Jan 12 2018 14:27
this is CACHE not directly accessible slots, so I can't figure out WAY that it actually stores newly entered AP.. so I stay on "ONE AP config in SDK flash area" scheme..
HappyCodingRobot
@HappyCodingRobot
Jan 12 2018 14:29
i see ..
Alexander V. Ribchansky
@avr39-ripe
Jan 12 2018 14:30
try it yourself! may be you can understand its logic.. may be I was not courage enough :)
I mean try to use SDK cache scheme for AP..
HappyCodingRobot
@HappyCodingRobot
Jan 12 2018 14:37
the config AP wasn't my main goal .. :‘-) maybe i stick with the file/spiffs way if it takes too long for me or i get stuck
thanks for your help
Alexander V. Ribchansky
@avr39-ripe
Jan 12 2018 14:40
and what is you main goal??
HappyCodingRobot
@HappyCodingRobot
Jan 12 2018 14:43
the main idea was, to put a remote control on some instruments i'm using (power supply, signal generator, multimeter..) .. just because.. ;)
and i did not like the idea to the credentials in defines. Sming has so many nice ways like rboot for updates ..
*store
riban-bw
@riban-bw
Jan 12 2018 20:05
@raburton (or anyone else who knows) - Why does Makefile-rboot flash: write a blank image to 0x01000? If rBoot is at 0x00000 and launches the firmware at 0x02000 then is seems odd to expend time and wear, writing to 0x01000