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?
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 callingSerial.println(csr.length())
immediately beforeSerial.println(csr)
in order for the CSR cert to output via Serial. Otherwise, the output would be an empty string. If I simply callcsr.length()
without passing the result toSerial.println
, this also does not work. Seems like a weird state issue, maybe?