If sensor data is missing after migrating to APIv7, unhide the channel on the Device Manage Page or use the "showhidech" API parameter to access data from hidden channels.
Summary: Users may encounter a situation where no or some sensor data is not being received after migrating to APIv7. This issue can arise when channels are hidden in the user interface, preventing data from being visible on the platform. There are two main solutions to resolve this problem:
- Unhide the channel in the Device Manage Page to make it visible in the UI.
- Use the showhidech parameter in the API request to access hidden channels without making them visible in the UI.
Detailed Steps to Resolve:
-
Unhide the Channel in the User Interface:
- Go to the Device Manage Page in the AlphaX Cloud IoT platform.
- In the list of channels, locate the channel corresponding to the sensor(s) that are not providing data.
- Look for the "Hide Data" checkbox (as seen in the screenshot).
- If the checkbox is selected, the channel is hidden. Uncheck this box to unhide the channel.
- Once unhidden, the channel will be visible to all users with access to the platform, and data will be displayed as expected.
Note: Unhiding the channel may not be desirable for system channels or other sensitive data, as this makes the channel visible to all users with access to that device. Use method 2 if this is the case.
-
Utilize the
showhidech
Parameter in the API:- As an alternative, you can retrieve data from hidden channels without unhiding them in the user interface by modifying your API request.
- In your API request, add the
showhidech
parameter and set it totrue
. This will allow you to get data from channels that are hidden in the UI without exposing them to all users. - For detailed information refer to this page: https://apidocs.alphax.cloud/http/retrieve-data/conduit-v7/using-conduit-v7
- This approach ensures you can access the hidden channel data while keeping the channel hidden for other users.
Conclusion: By either unhiding the channel or utilizing the showhidech
parameter in your API request, you can resolve the issue of missing sensor data after migrating to APIv7. Each method has its pros and cons depending on the sensitivity of the channel data and your preference for visibility in the user interface.