Hi,
You had select GCM project id in enrollment code and created a new enrollment code , you need to enroll the device again .
GCM project id should reflect on Afaria client on device.Than only it will work.
I will suggest you to re enroll the device after creating new enrollment code.