a simple CoAP message builder