I think, the signature of the rom base64_encode is the same as this:
http://ftp.netbsd.org/pub/NetBSD/NetBSD ... s/base64.c
Cal
@dnc40085 I can't access github at the moment. Can you put a link to this post?
Explore... Chat... Share...
extern unsigned char * base64_encode(const unsigned char *src, size_t len, size_t *out_len);void nodemcu_init(void)
{
unsigned char * base64;
unsigned char * somemem;
NODE_ERR("nodemcu_init\n");
extern void mem_init(void * start_addr);
extern unsigned char * base64_encode(const unsigned char *src, size_t len,
size_t *out_len);
// get some mem from nodemcu heap
somemem = c_malloc(8192);
// fake rom malloc init
mem_init(somemem);
base64 = base64_encode("GPL or BSD?", 11, 0);
NODE_ERR("base64:");
NODE_ERR(base64);
nodemcu_init
base64:R1BMIG9yIEJTRD8=
$ echo R1BMIG9yIEJTRD8= | base64 -d
GPL or BSD?
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]