yeah.. I'm looking into binutils... looks like LD thing
@Makuna same here...ha
I have an arduino ide question. I'd like to add a build script that converts some SPIFFS files into "production" mode. Unfortunately, arduino ide seems to insist on compiling everything in the project folder- include build script, node_npm folder etc. Can I force arduino to ignore files and folders in the build process?
Another general Arduino IDE question: When I install an Arduino core from Baords Manager, on OS X, what folder does it get installed to?
@igrr aha, thanks, was trying to figure out how to override boards manager installed core (arduino-nRF5) with latest git core.
seems like, <sketchbook>/hardware does take priority over installed one though
hey guys, i got into a bootloop/crash loop
would that be because i inadvertently applied 5v to the esp earlier? :(
skorokithakis: possibly, but FWIW I've applied 5V to ESPs a few times without incident
hmm, yeah, i thought so too, but this is odd
nah, i keep getting watchdog reset
i can flash it fine, it just won't run for some reason
i keep getting a long memory dump, does anyone know what that's about?
turns out the tx/rx connections weren't secure enough and data was getting corrupted
is there a way to parse a string like "10 20 30" to ints easily?
atoi() three times?
that would require me to also know where to split the string, though
i'm looking for something like sscanf, but that doesn't seem to exist
i see it in a branch @igrr wrote, but it doesn't seem to be merged
that is the implementation of strtok, and why its a problem to use, as it stores a value between calls (that's what static does, it states, make the variable live longer than the scope) so that if someone else calls it, it resets the static that you were calling.
it also shows how you can use strtok_r() where ever you used strtok before, just provide your own locally scoped (but still always within the scope of the multiple calls) variable to the last param.
i see, that clarifies everything, thank you
so it looks like something else was indeed calling it, and it must have been something in mqttPublish, because it was sending the things in the preamble
mqttPublish concatenates some String objects, i think that was what was calling it
also, another interesting observation: analogWrite(2, 1000); digitalWrite(2, 0); doesn't reset the pin to 0
which is scary, as do they protect themselves from someone doing it to them.
it only resets it for an instant
@Makuna yeah, i don't think they do :/
there is a whole series of these state storing C standard functions that SHOULD BE AVOIDED, as there is always the better alternative that doesn't.