Buffer size too small



  • Re: Buffer size SOLVED
    Hello, I'm using struct to pack and unpack a message as the following

    HEADER_FORMAT = "!8s8sHHB3s"
    header = struct.pack(HEADER_FORMAT, source_addr, dest_addr, seqnum, acknum, flags, check)
    sp, dp, seqnum, acknum, flags, check = struct.unpack(HEADER_FORMAT, header)
    

    However after the lopy receives the first message it gives me the ValueError:Buffer too small.
    I'm making the communication between a lopy and raspberry.
    I don't know what the problem is, could you help me please?
    Thanks in advance



Pycom on Twitter