+ // Check that we can send up to 65535 bytes without errors
+
+ char large_data[65536] = "";
+
+ for(int i = 0; i < 3; i++) {
+ assert(meshlink_channel_send(server, channels[i], large_data, sizeof(large_data) + 1) == -1);
+ assert(meshlink_channel_send(server, channels[i], large_data, sizeof(large_data)) == sizeof(large_data));
+ }
+
+ // Assert that packets larger than 64 kiB are not allowed
+
+ assert(meshlink_channel_send(server, channels[0], large_data, 65537) == -1);
+