The RemoteX project provides remote access to Azure Sphere peripherals from a POSIX C application. The project is similar in nature to the Raspberry Pi Remote GPIO with the pigpio C Interface and Arduino Firmata projects.
Refer to the DesktopDevX and RemoteX wiki video for information on the AzureSphereRemoteX Server and Azure Sphere Client Library.
You would normally submodule the RemoteX client library into your project
git submodule add https://github.com/Azure-Sphere-DevX/AzureSphereRemoteX.Client.git AzureSphereRemoteX
You can find examples for the RemoteX Client libary at the following locations:
Update the project CMakeLists.txt file to make the AzureSphereRemoteX client library available in yout project.
################################################################################
# Following lines required for AzureSphereRemoteX
add_subdirectory("AzureSphereRemoteX" applibs)
target_link_libraries(${PROJECT_NAME} "applibs")
################################################################################
This is the address of the Azure Sphere running the AzureSphereRemoteX.Server to your CMakeLists.txt file.
add_compile_definitions(AZURE_SPHERE_REMOTEX_IP="192.168.10.117")
Enabling this flag in the CMakeLists.txt file will improve performance of SPI peripherals that don't require a response. For example a LED 8x8 Panel.
add_compile_definitions(AZURE_SPHERE_REMOTEX_PERFORMANCE_MODE)