Skip to content

Call ciot_tcp_stop(base->tcp) (and updating status/state accordingly), or keep returning NOT_SUPPORTED if stop isn’t implemented on this platform. #47

Description

@wjsan

On Windows, ciot_wifi_start() starts the underlying TCP interface, but ciot_wifi_stop() now returns CIOT_ERR_OK without actually stopping anything. This can leave the TCP/netif state running while callers believe Wi-Fi has stopped (and it hides the previous explicit NOT_SUPPORTED). Consider calling ciot_tcp_stop(base->tcp) (and updating status/state accordingly), or keep returning NOT_SUPPORTED if stop isn’t implemented on this platform.

    CIOT_ERR_NULL_CHECK(self);

    ciot_wifi_base_t *base = &self->base;

    return ciot_tcp_stop(base->tcp);

Originally posted by @Copilot in #41 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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