I think it can work. The max 485 can handle to to 5v, and also 3.3v would not really be a problem. I do not know if the esp8266 is compatible with 3.7v or sometimes even more for li ion batteries.
Apart from that, my library is not included in nodemcu (the lua firmware). It is only a plain c library.