Error uploading on WEMOS with Random Node

Hi XODer´s

i have problem with uploading patch to a WEMOS D1 Mini board.
Problem is the Random node but i dont understand whats the Problem.
On any other board the Random Node runs fine also in DEBUG Mode.

C:\Users\Chris\AppData\Local\Temp\xod_temp_sketchbookEJDZNw\xod_1592925079006_sketch\xod_1592925079006_sketch.ino: In function ‘void xod::nkrkv__random__random::evaluate(xod::nkrkv__random__random::Context)’:
C:\Users\Chris\AppData\Local\Temp\xod_temp_sketchbookEJDZNw\xod_1592925079006_sketch\xod_1592925079006_sketch.ino:1268:31: error: invalid conversion from ‘long unsigned int*’ to ‘unsigned int*’ [-fpermissive]
int rnd = rand_r(seedp);
^

In file included from C:\Users\Chris\xod_packages_\packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:11:0,
from C:\Users\Chris\xod_packages_\packages\esp8266\hardware\esp8266\2.4.3\cores\esp8266/Arduino.h:27,
from C:\Users\Chris\AppData\Local\Temp\xod_temp_sketchbookEJDZNw\xod_1592925079006_sketch\xod_1592925079006_sketch.ino:18:
C:\Users\Chris\xod_packages_\packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:197:12: error: initializing argument 1 of ‘int rand_r(unsigned int*)’ [-fpermissive]
int _EXFUN(rand_r,(unsigned *_seed));
^
C:\Users\Chris\xod_packages
\packages\esp8266\hardware\esp8266\2.4.3/tools/sdk/libc/xtensa-lx106-elf/include/_ansi.h:65:30: note: in definition of macro ‘_EXFUN’
#define _EXFUN(name, proto) name proto

My guess would be that board doesn’t support long unsigned integers.

1 Like

Thanks for answer gweimer!
Then i look at another board with wlan funktion.

Greez
Chris

Dear XODers,

this node Runs with Wemos Board.

chris-cross/random-wemos-d1@1.0.0

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.