Prince Kumar Singh in MATLAB Answers
上次活动时间: 2022-6-13

Hi, I am planning to develop an IOT project in which I control my hardware through an android application. For that, I would have to connect my android application to thing speak server, subscribe and publish data through MQTT api etc. Is there any tutorial following which I could achieve this or is it even possible to create such a connection on Thing speak platform?
jose laso in Discussions
上次活动时间: 2022-4-21

Hello, I am currently working on a simple android app for a smart irrigation system. Basically the app lets the user enter the name of the plant and then lists all the plants of the garden. Then, I have divided plants into three categories depending on their watering needs and I have created three int values for the amount of plants per group. Essentially I want to send these three values to a thingspeak channel I created, to 3 separated fields. I am not familiar at all with server programming in Java so I would really appreciate any kind of help in how to do this. Send three integer values from android studio to three fields in a thingspeak channel Here's a <https://github.com/angryelectron/thingspeak-java related repo> . android java thingspeak
Rhyston Da Silva in MATLAB Answers
上次活动时间: 2021-9-2

I am attempting to take a user input value on an android application and then upload that value to ThingSpeak for further use. I am trying to use Android Studio and Kotlin, but I keep getting the same error. Any guidance will be much appreciated as I would just like to get the application to run. I have created a Button to execute and Two Texts - Number (Signed) for input. Below is the code that I have attempted: import android.os.Bundle import android.view.View import android.widget.Button import androidx.appcompat.app.AppCompatActivity import com.squareup.okhttp.Request import com.squareup.okhttp.OkHttpClient class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val waterAmount = findViewById<View>(R.id.WaterAmount) val temperatureAmount = findViewById<View>(R.id.TemperatureAmount) val dispenseButton = findViewById<Button>(R.id.DispenseButton) dispenseButton.setOnClickListener { val okHttpClient = OkHttpClient() val builder: Request.Builder = Request.Builder() val request: Request = builder.url("https://api.thingspeak.com/update?api_key=APIKEY&field1=" + waterAmount).build() } } } The error that I keep receiving is: Duplicate class org.objectweb.asm.AnnotationVisitor found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.AnnotationWriter found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Attribute found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.ByteVector found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.ClassReader found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.ClassVisitor found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.ClassWriter found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Edge found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.FieldVisitor found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.FieldWriter found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Frame found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Handler found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Item found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Label found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.MethodVisitor found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.MethodWriter found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Opcodes found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.Type found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.signature.SignatureReader found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.signature.SignatureVisitor found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Duplicate class org.objectweb.asm.signature.SignatureWriter found in modules jetified-asm-3.1 (asm:asm:3.1) and jetified-asm-4.0 (org.ow2.asm:asm:4.0) Go to the documentation to learn how to Fix dependency resolution errors.
John Cruskie in MATLAB Answers
上次活动时间: 2019-10-31

I would like to be able to issue this: https://api.thingspeak.com/update?api_key=myapikey&field1=634567 from an android app. Do libraries exist that I could import into a android java project to make it easy? Or what would be the raw java code to do this?
Zdenek Kubin in MATLAB Answers
上次活动时间: 2018-6-30

Dear colleagues, I try to implement this <https://github.com/angryelectron/thingspeak-java ThingSpeak-java> , but after javaaddpath('... Documents\MATLAB\thingspeak-java-master\lib\log4j.jar') import org.apache.log4j.* I do not know what to do next. I cannot use the standard Matlab library for ThingSpeak, because it is not supported by compilator. Thank you for your help Z.

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.