Get the network state into the reply buffer, returning true if there is some sort of error
| 670 | |
| 671 | // Get the network state into the reply buffer, returning true if there is some sort of error |
| 672 | GCodeResult Network::GetNetworkState(unsigned int interface, const StringRef& reply) noexcept |
| 673 | { |
| 674 | #if HAS_NETWORKING |
| 675 | if (interface < GetNumNetworkInterfaces()) |
| 676 | { |
| 677 | return interfaces[interface]->GetNetworkState(reply); |
| 678 | } |
| 679 | |
| 680 | reply.printf("Invalid network interface '%d'\n", interface); |
| 681 | return GCodeResult::error; |
| 682 | #else |
| 683 | reply.copy(notSupportedText); |
| 684 | return GCodeResult::error; |
| 685 | #endif |
| 686 | } |
| 687 | |
| 688 | bool Network::IsWiFiInterface(unsigned int interface) const noexcept |
| 689 | { |
no test coverage detected