Actually Set Payload in coap_set_payload
But set the length right when a payload already exists.
More Specfic Error Messages
Changed to use explicit values, was failing on some platforms.
Added posix example, not fully tested.