I already added a capacitor on both, that didn't change much.
I kept testing last night with the transmissions and I think the problem is maybe in combination with the TSL readings. By reducing the package size I got it to send good data every now and then but whenever a reading from the TSL2561 was scheduled, the data package gets still messed up.
Its like trying to send data within callbacks after reading from the TSL does mess it up. After 30 or so more seconds it works again.
I am 100% sure that I am sending strings and I also convert all readings with Math.round() to make it impossible to have junk in my values from using possibly faulty readouts.
Tonight I will try to remove the TSL and maybe don't send data within the callbacks.
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.
Thank you, Gordon!
I already added a capacitor on both, that didn't change much.
I kept testing last night with the transmissions and I think the problem is maybe in combination with the TSL readings. By reducing the package size I got it to send good data every now and then but whenever a reading from the TSL2561 was scheduled, the data package gets still messed up.
Its like trying to send data within callbacks after reading from the TSL does mess it up. After 30 or so more seconds it works again.
I am 100% sure that I am sending strings and I also convert all readings with
Math.round()
to make it impossible to have junk in my values from using possibly faulty readouts.Tonight I will try to remove the TSL and maybe don't send data within the callbacks.