Skip to content

Update PoESP32-SNMP-Sensor.ino #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PoESP32-SNMP-Sensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const uint8_t SNMP_READCOMMUNITY_VALUE_7[] = "readonly"; // Set SNMP read commun
//The AUTHORIZED_HOSTS list should include the IP of any hosts that may query this device via SNMP.
const IPAddress AUTHORIZED_HOSTS[2] = {IPAddress(192,168,1,1),IPAddress(192,168,1,10)};
//Update the array size here ^ to reflect the number of authorized host IPAddress entries you listed.
const int AUTHORIZED_HOSTS_QTY = 2;
//Update this number to match ^ the one above.

/* Valid OIDs (Must query one OID per request):
### Uptime
Expand Down Expand Up @@ -52,6 +50,8 @@ const int AUTHORIZED_HOSTS_QTY = 2;

// Calculate the length of the user-specifed hostname string.
static const uint8_t HOSTNAME_LEN = sizeof(HOSTNAME)-1;
// Calculate the length of the user-specifed authorized hosts list.
const int AUTHORIZED_HOSTS_QTY = sizeof(AUTHORIZED_HOSTS)/sizeof(IPAddress);

// Asynchronous UDP object
AsyncUDP udp;
Expand Down