Is there a reset pin on your SIM900? Without it, gprs.reset() may not be as good at resetting (if SIM900 was in the middle of receiving block of data when Espruino reset).
But I don't think that is your problem... I don't think it's really SIM900 related at all - it looks to me like your code is passing non-executable code into a function that expects a callback. If you could post your code up here, we could take a look for you?
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.
Is there a reset pin on your SIM900? Without it,
gprs.reset()
may not be as good at resetting (if SIM900 was in the middle of receiving block of data when Espruino reset).But I don't think that is your problem... I don't think it's really SIM900 related at all - it looks to me like your code is passing non-executable code into a function that expects a callback. If you could post your code up here, we could take a look for you?