Skip to content

Conversation

@Vibhasha-5
Copy link

Overview

This PR adds a ready-to-use IoT NodeMCU (ESP8266) integration snippet that sends real-time sensor data (temperature, humidity, parking status, etc.) to a ServiceNow instance via REST API. It demonstrates a full end-to-end IoT → ServiceNow workflow.

Features

  • NodeMCU script (NodeMCU_IoT_Sensor.ino) connects to Wi-Fi, reads sensor data, and sends JSON payload to ServiceNow REST API.
  • ServiceNow Scripted REST API (ServiceNow_REST_Endpoint.js) receives JSON payload and inserts it into the x_iot_device_data table.
  • Includes example output (example_output.png) demonstrating a successful record insert.
  • Detailed README.md with setup instructions for both NodeMCU and ServiceNow.

How to Test

  1. Setup ServiceNow Scripted REST API as described in README.
  2. Update NodeMCU script with Wi-Fi and ServiceNow credentials.
  3. Flash NodeMCU using Arduino IDE.
  4. Monitor serial output to see data being sent.
  5. Check ServiceNow x_iot_device_data table for records.

Hacktoberfest Info

  • Category: Integration → IoT + REST
  • Contributor: @Vibhasha-5
  • Ready for Hacktoberfest 2025 contribution.

Ready for review & merge

This snippet is self-contained and fully functional for testing in a simulated environment.

@github-actions
Copy link

Thank you for your contribution. However, it doesn't comply with our contributing guidelines.

As a reminder, the general requirements (as outlined in the CONTRIBUTING.md file) are the following: follow the folder+subfolder guidelines and include a README.md file explaining what the code snippet does.

Validation errors:

Folder structure violations found:
 - Move 'Integration/IoT_NodeMCU_ServiceNow_REST/NodeMCU_IoT_Sensor.ino' under a valid folder hierarchy (Category/Subcategory/Use-Case/your-file). Files directly inside 'Integration' or its subcategories are not allowed.
 - Move 'Integration/IoT_NodeMCU_ServiceNow_REST/README.md' under a valid folder hierarchy (Category/Subcategory/Use-Case/your-file). Files directly inside 'Integration' or its subcategories are not allowed.
 - Move 'Integration/IoT_NodeMCU_ServiceNow_REST/ServiceNow_REST_Endpoint.js' under a valid folder hierarchy (Category/Subcategory/Use-Case/your-file). Files directly inside 'Integration' or its subcategories are not allowed.
 - Move 'Integration/IoT_NodeMCU_ServiceNow_REST/c_cpp_properties.json' under a valid folder hierarchy (Category/Subcategory/Use-Case/your-file). Files directly inside 'Integration' or its subcategories are not allowed.
 - Move 'Integration/IoT_NodeMCU_ServiceNow_REST/example_output.png' under a valid folder hierarchy (Category/Subcategory/Use-Case/your-file). Files directly inside 'Integration' or its subcategories are not allowed.

Review your contribution against the guidelines and make the necessary adjustments. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.

@github-actions github-actions bot closed this Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant