/* Base64-encodes a small chunk of data and transmits it. The data must be no larger than three bytes.  */
static int mcumgr_dummy_tx_small(const void *data, int len, mcumgr_serial_tx_cb cb)
/* Base64-encodes a small chunk of data and transmits it. The data must be no larger than three bytes.  */
static int mcumgr_dummy_tx_small(const void *data, int len, mcumgr_serial_tx_cb cb)
{
	uint8_t b64[4 + 1];
	size_t dst_len;
	int rc;
	rc = base64_encode(b64, sizeof(b64), &dst_len, data, len);
	__ASSERT_NO_MSG(rc == 0);
	__ASSERT_NO_MSG(dst_len == 4);
	return cb(b64, 4);
}