I found the problem, I use an arduino leonardo with a dragino nbiot shield. For incomming/outgoing messages i use SoftwareSerial.h, to change the tx/rx pins to pins 10/11.
I fixed the problem by using the normal rx/tx pins and it works. Hence the library seems to be my problem.
Hope this helps anyone.