There was this same question a month back and the thread was locked due to inactivity. Can you please let us know what your requirement is. Are you trying to program your device using the PPCLI command-line tool?
All the APIs are correct except the last one "ReleaseChip" which is only applicable for PSoC1 devices.
What you are doing essentially with the above commands is setting the connection parameters, acquiring the device, and then reading the internal die temperature and releasing the chip from test mode. I don't know what the LED turning off and blinking in your context means.
And the results are 0 for all APIs, which suggests that there wasn't any error. What is your requirement and what is the appropriate result you are expecting? Please clarify.
Looking forward to your reply.