Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Automate external storage

Automate external storage

Josaphat_Aviles
Established Member

Hello,
Have any of you automate the mounting external storage process?
I would like to configure the CtrlX without computer when it is running, to start detecting what type of SD it is using and detect the size of it, all with C++ and create a condition according to that parameter.
Thanks in advance.

5 REPLIES 5

nickH
Community Moderator
Community Moderator

Hi @Josaphat_Aviles 

there is a REST API to interact with the storage management of the ctrlX OS. Please have a look into the ctrlX OS Storage API description on GitHub

Another hint: With the help of the developer tools in your Browser (F12) you can also see what API calls the web-ui uses when you click a button in the ui for example. 

Best regards, 

Nick

 

Hello @nickH 
Do you mean that I can program in my SSH an app where I can visualize de name, capacity and fere capacity as picture attached ?
How can I do that, is there an rexroth especific library? Do I have to use nlohman/json, curls, etc? I mean currently I program in ssh with ctrlx works and VS and the build snap and download it to load manually in CtrlxCore.
So.. is posibble create an app to do that?

Hello @nickH 

Just to confirm, it requires create some user to start to use the API?
Other question.. Is neccesary that Ctrlx core is connected to internet or any server?
Is possible to Debugging in App Build Environment with this API?

Hello @nickH  and @Sgilk,
Thank you for your support.. After many attempts I was able to achieve it through commands in the terminal with its IP address, however now the difficult thing is to process it in C++ since I have tried to install Curl libraries, but I find a lot of error that does not find the files, any advice? Where would you start?
Thanks

Sgilk
Frequent Contributor

Hi @Josaphat_Aviles ,

What you are looking for is a C++ REST client. There are a lot of options here, so it is really user preference. Here is a wrapper for libcurl (restclient-cpp) that looks user friendly. Another option would be to use the libcurl C API directly.

If you are having problems installing libraries into your application, I'd suggest starting a new thread for those questions, since that's a general c++ topic. If you could post the error messages you are seeing, we could help you better.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist