Patrick wrote:After changing the antenna state, you can poll CPhidgetRFID_getAntennaOn until it reflects the new state - this function is reflecting data as returned from the device itself. Latency should be ~50ms or less.
OK, so a relativly short-lived busy loop it is (could sleep 10ms between tries, to be nice to the system..)
Patrick wrote:The write functions will return EPHIDGET_UNSUPPORTED on 1023 - you just need to check your return codes.
But I want to know it without risking writing anything on systems that DO support writing. After your reply, my first thought was to pass NULL as tagString. To be absolutely sure, I checked the source, and it seems this will fail for all devices. I can fool the system by passing an invalid protocol (like, -1 or similiar). Read-only will return EPHIDGET_UNSUPPORTED, Read-Write will return EPHIDGET_INVALIDARG. Does this sound good to you? (I'm making a generic system, and don't want a Write-button for devices that are Read-only)