HSerout ["AT+CWMODE=1",13,10]
hserin [WAIT("OK") ,RX0,RX1,RX2,RX3,RX4,RX5]
the device responds

OK(chr13,chr10) or OK(chr10)

so
RX0=13,RX1=10 and then hserin will wait forever trying to fill rx2-5 because no more serial data is forthcoming


either use a timeout or

hserin [WAIT("OK") ]