base64_decode and base64_encode

vowstar
Posts: 15
Joined: Fri Oct 24, 2014 7:23 pm

base64_decode and base64_encode

Postby vowstar » Sat Oct 25, 2014 1:00 pm

In addition rewrite, how to use base64_decode(0x40009648) and base64_encode(0x400094fc) has been integrated in the SDK?

vowstar
Posts: 15
Joined: Fri Oct 24, 2014 7:23 pm

Re: base64_decode and base64_encode

Postby vowstar » Sat Oct 25, 2014 1:07 pm

I've test it with(guess

Code: Select all

   
   char str[100]={'\0'};
   char outstr[100]={'\0'};
   os_printf("# TEST BEGIN\n");
   os_sprintf(str,"Hello world!");
   os_sprintf(outstr,"World Hello!");
   base64_encode(str,outstr,11,100);
   os_printf("%s,->%s\n",str,outstr);
   os_printf("# TEST END\n");

but nothing happened.:(

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: base64_decode and base64_encode

Postby ESP_Faye » Mon Oct 27, 2014 11:36 am

Sorry, base64_encode and base64_decode in ROM can not be used in our sdk.
You can porting them from other platform to esp_iot_sdk.
We will delete these apis in next version of sdk.

tinhead
Posts: 5
Joined: Fri Oct 24, 2014 8:28 pm

Re: base64_decode and base64_encode

Postby tinhead » Mon Oct 27, 2014 3:40 pm

Espressif_Faye wrote:Sorry, base64_encode and base64_decode in ROM can not be used in our sdk.
You can porting them from other platform to esp_iot_sdk.
We will delete these apis in next version of sdk.


well, they not docummented in SDK, but they already there, one could saved resources if there would be a way to have access to all the encryption functions in ROM.

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: base64_decode and base64_encode

Postby rudi » Fri Nov 14, 2014 6:05 pm

Hi guys
perhabs would be nice as feature next version?
viewtopic.php?f=7&t=12
bw rudi ;-)

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

vowstar
Posts: 15
Joined: Fri Oct 24, 2014 7:23 pm

Re: base64_decode and base64_encode

Postby vowstar » Mon Nov 17, 2014 12:59 pm

tinhead wrote:
Espressif_Faye wrote:Sorry, base64_encode and base64_decode in ROM can not be used in our sdk.
You can porting them from other platform to esp_iot_sdk.
We will delete these apis in next version of sdk.


well, they not docummented in SDK, but they already there, one could saved resources if there would be a way to have access to all the encryption functions in ROM.


Hope SDK open more interface, so that we can do more. :)

Who is online

Users browsing this forum: Baidu [Spider] and 9 guests