I did post the whole code already.
link to the library: oic/src/ArduinoSCPIParser at master · LachlanGunn/oic · GitHub