Giter Club home page Giter Club logo

Comments (8)

kirillzyusko avatar kirillzyusko commented on July 26, 2024

What is the size of the string? Does it exceed 16Mb?

from react-native-wifi-p2p.

anuragkaushik10 avatar anuragkaushik10 commented on July 26, 2024

Thankyou for your prompt response.

String size will not exceed 16mb

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

Okay, why can't you use sendFile? I guess it's more suitable?

But overall sending base64 also should work - does it throw any particular error?

from react-native-wifi-p2p.

anuragkaushik10 avatar anuragkaushik10 commented on July 26, 2024

Here you go getting same error when using sendFile() and sendMessage()

image

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@anuragkaushik10 do you call getConnectionInfo? https://github.com/kirillzyusko/react-native-wifi-p2p?tab=readme-ov-file#sendmessagemessage

from react-native-wifi-p2p.

anuragkaushik10 avatar anuragkaushik10 commented on July 26, 2024

Okay I will do but before that.

The steps ->

  1. Search for devices using startDiscoveringPeers();
  2. After this by passing the device address I will connect the device using connect(deviceAddress)
  3. Start to using sendMessage or sendFile functions on sender side and simultaneously call receiveMessage and receiveFile functions on receiver side.

from react-native-wifi-p2p.

anuragkaushik10 avatar anuragkaushik10 commented on July 26, 2024

Hey when following the steps mentioned in README for sending message.

Calling createGroup() gives the following error

image

++++

Also calling getConnectionInfo() after calling createGroup() gives the following message

{"groupFormed": true, "groupOwnerAddress": {"hostAddress": "host:name", "isLoopbackAddress": false}, "isGroupOwner": false}

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

Calling createGroup() gives the following error

@anuragkaushik10 Can you share adb logs?

from react-native-wifi-p2p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.