[fix] updated xively.c according to the requirements