Skip to content

Commit

Permalink
Fixes #40: Enlarge DynamicJsonDocument for pollPresence()
Browse files Browse the repository at this point in the history
to account for status messages in /me/presence response.
  • Loading branch information
nmtoblum committed Jan 12, 2024
1 parent 8fbc982 commit 198354e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void pollForToken() {
// Get presence information
void pollPresence() {
// See: https://github.com/microsoftgraph/microsoft-graph-docs/blob/ananya/api-reference/beta/resources/presence.md
const size_t capacity = JSON_OBJECT_SIZE(4) + 500;
const size_t capacity = 1024;
DynamicJsonDocument responseDoc(capacity);
boolean res = requestJsonApi(responseDoc, "https://graph.microsoft.com/v1.0/me/presence", "", capacity, "GET", true);

Expand Down

0 comments on commit 198354e

Please sign in to comment.