arduino-libraries / ArduinoECCX08

76 stars 49 forks source link

CSR generation example does not work on Arduino Nano IoT 33 #23

Open thebigredgeek opened 4 years ago

thebigredgeek commented 4 years ago

The example, as is, does not work on the IoT 33. Serial.println(csr); pushes an empty string out through serial. To get this to work, I had to prime the String instance and/or the Serial singleton by calling Serial.println(csr.length()) immediately before Serial.println(csr) in order for the CSR cert to output via Serial. Otherwise, the output would be an empty string. If I simply call csr.length() without passing the result to Serial.println, this also does not work. Seems like a weird state issue, maybe?