8000 udp.peek() always returning -1, even when bytes are available · Issue #106 · arduino-libraries/MKRGSM · GitHub
[go: up one dir, main page]

Skip to content
udp.peek() always returning -1, even when bytes are available #106
@MrWFoulkes

Description

@MrWFoulkes

With the same code as issue #105, udp.peek() is always returning -1.

Here's the serial output:

Attempting to connect to the modem

Attempting to connect to the GPRS Access Point Name

Packet sent
Awaiting response
udp.parsePacket 48
udp.available -48
udp.peek -1 <--- expected decimal 36 (first byte in response)

The code is the same as #105 and quite long so I won't post it again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0