ChangeControllerTypeAsync

This function allows us to convert an Ep controller into a Lp controller or vice versa. Please note that the prefix at this time can be ‘Ep’ or ‘Lp’ and is case sensitive. Returns ()

Overview of ChangeControllerTypeAsync goes here.

Name Description
controller
newPrefix

Change Controller Type Async

Example in C#

// Returns: nothing
await client.ChangeControllerTypeAsync(MercuryControllerInfo controller, String newPrefix)
        This example shows an Ep1501 being converted into a Lp1501.
        > Example in CURL


           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/type \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d 'Lp'
            

        This example shows an Ep1501 being converted into a Lp1501.

Example in C#



           var controller = (Ep1501Info)(await client.GetControllerByMacAddressAsync(currentInstance,"F0:0F:E5:06:9F:32"));
           await client.ChangeControllerTypeAsync(controller, "Lp");