If that doesn't work then perhaps your wiring is wrong? TX should go to RX and vice versa (and obviously you need GND too).
If it does work, perhaps the module itself doesn't send newlines in the way that the AT library is expecting? In that case it might be that the library isn't detecting a newline, so isn't calling the callback with the data.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, what you've got there should work. How about totally stripping it back to basics and seeing if anything happens:
If that doesn't work then perhaps your wiring is wrong? TX should go to RX and vice versa (and obviously you need GND too).
If it does work, perhaps the module itself doesn't send newlines in the way that the
AT
library is expecting? In that case it might be that the library isn't detecting a newline, so isn't calling the callback with the data.