Why this code is not working for nodemcu ? Its throwing an error like this.

This is perfectly fine with Arduino Uno. But i cant use it for nodemcu. file with the attachment.

Error :

In file included from C:\Users\User\Documents\Arduino\Test 1\New folder\Test_5\Test_5.ino:4:0:

C:\Users\User\Documents\Arduino\libraries\AES-master/./printf.h: In function 'void printf_begin()':

C:\Users\User\Documents\Arduino\libraries\AES-master/./printf.h:31:29: error: 'fdevopen' was not declared in this scope

fdevopen( &serial_putc, 0 );

^

Multiple libraries were found for "AES.h"
Used: C:\Users\User
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

Test_5.ino (1.89 KB)

You forgot to post the content of that printf.h file you include.

Multiple libraries were found for "AES.h"

This might lead you to one source of your problems.