 
 				udp.beginPacket(srvIp, 10000);
 				udp.write("!");
-				udp.write((const uint8_t*)readerCardNumber, LENGTH);
+				udp.write((uint8_t*)readerCardNumber, LENGTH);
 				udp.endPacket();
 			}
 			else
 			{
 				udp.beginPacket(srvIp, 10000);
 				udp.write("@");
-				udp.write((const uint8_t*)readerCardNumber, LENGTH);
+				udp.write((uint8_t*)readerCardNumber, LENGTH);
 				udp.endPacket();
 				udpResponseTimeout = 1000;
 			}

			// sending notification about door state
			udp.beginPacket(srvIp, 10000);
			char buf[10];
			sprintf(buf, "^%d|%06ld", door == close ? 0 : 1, time);
			udp.write(buf);
			udp.endPacket();
		}


				// sending notification with button press time
				udp.beginPacket(srvIp, 10000);
				char buf[10];
				int len = snprintf(buf, 10, "%%%05d", time);
				udp.write((uint8_t*)buf, len);
				udp.endPacket();

				if (isDoorLocked)
