Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit f5b7974

Browse files
committed
Added warning about max comment length
1 parent 3e63b3d commit f5b7974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void setup() {
106106
//code = server.postTemperature(32);
107107
//code = server.postLightIntensity(12.5);
108108
//code = server.postPressure(25.2);
109-
//code = server.postComment("Hello World!");
109+
//code = server.postComment("Hello World!"); // Comments may only be 32 chars long!
110110
if(code == 201)
111111
Serial.println("Data posted successfully!");
112112
else

server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int CubeServer::postLightIntensity(double value) {
143143
return this->post(data);
144144
}
145145

146-
int CubeServer::postComment(String value) {
146+
int CubeServer::postComment(String value) { // 32 chars max!
147147
char data[64];
148148
sprintf(data, "{\"type\": \"comment\", \"value\": \"%s\"}", value);
149149
return this->post(data);

0 commit comments

Comments
 (0)